How to Delete Folders from Outlook 2007 "Deleted Items" Folder.

A

abhi4u1947

I'm trying to empty the "Deleted Items" folder. I'm using the below
snippet to empty. I'm able to delete all the items successively. The
"Deleted Items" folder also contains some custom folders, which I'm
not able to clear.


I'm getting the below error:

"{System.Runtime.InteropServices.COMException (0x86220009): Unable to
delete this folder. Right-click the folder, and then click Properties
to check your permissions for the folder. See the folder owner or your
administrator to change your permissions.
at Microsoft.Office.Interop.Outlook.MAPIFolder.Delete()"

If I try to get the handle to the folders within the "Deleted Items"
folder and delete it.


I am working with VSTO-SE in vb.net With Outlook 2007.

Plz send me the solution.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top