Since April 1st, 2025, Microsoft Graph supports skipping the Deleted Items folder by permanently deleting, which will move deleted items to the hidden Purges folder within the user’s mailbox.
This behavior is the same as deleting with Shift + Delete from Outlook web UI, to then delete from Deleted Items a final time.
My use case:
Skipping this intermediary folder is great for any workflow that deletes emails when processed.
Any resources to support this?
Announcing general availability of the permanent delete APIs for contacts, messages, events, contact folders, mail folders, and calendars.
Are you willing to work on this?
PR available at:
master ← ByteEVM:nodes/outlook/permanent-delete
opened 01:14PM - 07 Jan 26 UTC
## Summary
Since [April 1st, 2025](https://devblogs.microsoft.com/microsoft36… 5dev/microsoft-graph-apis-for-permanent-deletion-of-mailbox-items-now-available/), Microsoft Graph supports skipping the **Deleted Items** folder by permanently deleting, which will move deleted items to the hidden `Purges` folder within the user's mailbox.
This behavior is the same as deleting with `Shift + Delete` from Outlook web UI, to then delete from `Deleted Items` a final time. Both API and web UI will move items to `Purges` folder, up to configured retention policies.
A helper function i.e., `executeDeletion`, takes care of deciding whether the API request should use the HTTP method `DELETE` or `POST`, in response for "normal" deletions or permanent ones, respectively.
See docs for [message: permanentDelete](https://learn.microsoft.com/en-us/graph/api/message-permanentdelete?view=graph-rest-1.0&tabs=http) in Microsoft Graph v1.0
Tested manually with `useShared: false` for `microsoftOAuth2Api` credentials – working as intended.
## Related Linear tickets, Github issues, and Community forum posts
## Review / Merge checklist
- [X] PR title and summary are descriptive. ([conventions](../blob/master/.github/pull_request_title_conventions.md))
- [ ] [Docs updated](https://github.com/n8n-io/n8n-docs) or follow-up ticket created.
- [X] Tests included.
- [ ] PR Labeled with `release/backport` (if the PR is an urgent fix that needs to be backported)