Gmail Nexviahub icon

Gmail Nexviahub

Consume the Gmail API

Draft → Delete

AI-generated

Summary

Delete a specified Gmail draft email by its Draft ID using OAuth2 or Service Account authentication.

Inputs

  • authentication (required) — Choose either OAuth2 (recommended) or Service Account for authentication.
  • clientId (required) — The Client ID for Google OAuth authentication.
  • clientSecret (required) — The Client Secret for Google OAuth authentication.
  • refreshToken (required) — The Refresh Token used to dynamically obtain an Access Token.
  • messageId (required) — The Draft ID of the draft email to delete (e.g., 'r-3254521568507167962').

Output shape

a single JSON object indicating the success or failure of the deletion operation

The operation returns confirmation of the deletion; no draft data is returned. Requires valid authentication credentials to perform the operation.

Links

Discussion