Reputation: 23
if i delete an contact over:
DELETE /users/{id | serPrincipalName}/contactFolders/{id}/contacts/{id}
It's create a mail object in the delted itmes folder.
Is this a Bug or Feature? :)
Thanks for your help.
Upvotes: 2
Views: 418
Reputation: 8899
This is by design, in EWS you can use the DeleteMode
Enum
contact.Delete(DeleteMode.SoftDelete);
In graph api it's (still) not available.
As a workaround, you can delete the item from the deleted items folder after a success delete response, for example:
DELETE /me/mailFolders/{id}/messages/{id}
Where mailFolders/{id}
is: mailFolders/deleteditems
, see: mailFolder resource type
Upvotes: 1