Patrick41194
Patrick41194

Reputation: 23

Microsoft Graph API - Delete contacts - create empty mail object in outlook in deleted itmes

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? :)

Outlook Screenshot

Thanks for your help.

Upvotes: 2

Views: 418

Answers (1)

Avshalom
Avshalom

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

Related Questions