Skip to main content
gmail.deleteDraft permanently removes an unsent draft.

Example

automations/delete-expired-draft.automation.ts

Inputs

Inputs accept compatible signals.
Gmail does not provide a way to restore a draft deleted by this action. Pass the draftId returned by a draft action, not the draft’s messageId.
The action fails if the draft was already sent or deleted, or belongs to a different connected account.

Output

Returns the deleted draftId as a Signal<string>.