PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Program Addins Clearing folder 'Deleted Items'

Reply

Clearing folder 'Deleted Items'

 
Thread Tools Rate Thread
Old 10-07-2008, 09:37 AM   #1
Koen Verwimp
Guest
 
Posts: n/a
Default Clearing folder 'Deleted Items'


Hey,

What is the best/easiest way to clear a MAPIFolder programmatically?

Thank you,
Koen
  Reply With Quote
Old 10-07-2008, 01:51 PM   #2
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: Clearing folder 'Deleted Items'

Get the Items collection for the folder and iterate it using a count down
loop, deleting items as you go.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Koen Verwimp" <KoenVerwimp@discussions.microsoft.com> wrote in message
news:6BB2B10A-28C9-4774-BE53-2C7F81398880@microsoft.com...
> Hey,
>
> What is the best/easiest way to clear a MAPIFolder programmatically?
>
> Thank you,
> Koen


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off