Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8500731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:01:15+00:00 2026-06-11T01:01:15+00:00

According to the docs, when I remove a contact from an address book, it

  • 0

According to the docs, when I remove a contact from an address book, it is moved to a “removed”-folder. Suppose there’s a lazy programmer (not you nor me, of course) who doesn’t want to write the code to update the contacts on each start of Outlook but simply removes all the contacts from an address book and then repopulates it (let’s say there are not that many users to populate with and that Outlook is started a large number of times each day), so that the performance isn’t an issue but the increasingly huge amount of entries in the deleted folder is.

Does Outlook manage the storage of deletes neatly or do I need, hrmp…, does that lazy programmer need to worry about it?

The said programmer would probably be using code that looks something like exactly this.

Outlook.Folder contacts = 
  this.Application.Session.GetDefaultFolder(
    Outlook.OlDefaultFolders.olFolderContacts) as Outlook.Folder;
Outlook.Folder addressBook = contacts.Folders["lazy"] as Outlook.Folder;

while (addressBook.Items.Count > 0)
  addressBook.Items.OfType<Outlook.ContactItem>().Last().Delete();

If he needs to worry, He’d probably want to delete the deletes from the deletion folder but, of course, only those that were deleted by his software. Is there a smooth way to delete-delete a contact?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T01:01:16+00:00Added an answer on June 11, 2026 at 1:01 am

    I would just re-create the Folder every time and avoid the slow one-by-one ContactItem deletions. When you remove the Folder it will not keep a copy in the deleted items. One Folder delete & save will be faster than a large number of item deletions.

    Outlook.Folders contactFolders = contacts.Folders;
    if (contactFolders.Cast<Outlook.Folder>()
      .Where(c => c.Name == "My AB").Count() > 0)
        contactFolders["My AB"].Delete();
    

    Just follow the address book creation steps from the previous SO post.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to the Thinking Sphinx docs ... Turning on delta indexing does not remove
According to the docs: You should not override init. You are discouraged from overriding
According to the docs , all ajax pages fetched are removed from the DOM
According to the gcc docs , memcmp is not an intrinsic function of GCC.
according to the official docs there are two options to create parallel collections: 1)
In Grails, there is a variant how to include local plugin from sources. According
According to Apple Docs NSCalendar is not thread-safe . How can I ensure thread-safety
According to docs at http://code.google.com/p/minify/wiki/UriRewriting $min_serveOptions['rewriteCssUris'] = false; I should be able to add
According to the docs, jQuery.extend() is a solution to execute both a deep and
According to the docs , Array.include? uses the == comparison on objects. I come

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.