How to "hard" delete item using extended mapi?

  • Thread starter Thread starter Julia
  • Start date Start date
J

Julia

Hello

Which function in extened mapi for hard delete messages,
so they wont go to the deleted items folder?


thanks
 
IMAPIFolder::DeleteMessages()
A note on terminology - a soft delete in Outlook is actually a move to the
Deleted Items folder, it has nothing to do with deletion.
A message is deleted when you call IMAPIFolder::DeleteMessages().
Hard delete in Extended MAPI is when you use the DELETE_HARD_DELETE flag
when calling IMAPIFolder::DeleteMessages (Exchange specific). In this case
you will not be able to undelete the message. Normally Exchange retains
deleted messages for some time, so you can undelete them using "Deleted Item
Recovery"

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Ok,thanks.

BTW i notice that for a soft deleted item the parent is the original folder
and not the deleted folder?!

Thanks.
 
" BTW i notice that for a soft deleted item the parent is the original
folder"

sorry this section is about contacts item
when soft deleting them I see this behavior
 
My question still stands: "Do you mean the MailItem.Parent property? When
and how do you read it?".

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top