Outlook icon

Outlook

Manage Microsoft Graph Outlook subscriptions, messages, and attachments

Actions25

Draft → Delete

AI-generated

Summary

Deletes a specific Outlook draft message from a user's mailbox or a shared mailbox.

Inputs

  • Mailbox — Select 'Current Mailbox' for the authenticated user's drafts or 'Other Mailbox' to target a shared mailbox. The 'Other Mailbox Email' field is required when 'Other Mailbox' is selected.
  • Draft ID (required) — The unique identifier of the draft to delete. If 'Use Immutable ID' is enabled, this must be an immutable ID.
  • Other Mailbox Email — The email address of the shared mailbox when 'Other Mailbox' is selected.
  • Use Immutable ID — When true, sends a Microsoft Graph Prefer header (IdType="ImmutableId") indicating the provided ID is an immutable ID.

Output shape

no body — success or failure only

Returns a success status. If the draft does not exist or the user lacks permissions, the operation will fail.

Examples

Example 1: Delete a draft in the current mailbox

Select 'Current Mailbox', enter the Draft ID (e.g. 'AAMkAG...='), and keep 'Use Immutable ID' unchecked.

Example 2: Delete a draft in a shared mailbox

Select 'Other Mailbox', enter the shared mailbox email address, enter the Draft ID, and keep 'Use Immutable ID' unchecked.

Example 3: Delete a draft using an immutable ID

Select 'Current Mailbox', enter the immutable Draft ID, and check 'Use Immutable ID'.

Links

Discussion