Skip to main content
gmail.deleteLabel permanently deletes a user-owned label without deleting labeled messages or threads. Use an immutable label ID when possible. The action resolves display names case-insensitively against the connected mailbox.

Example

automations/delete-old-label.automation.ts

Inputs

Inputs accept compatible signals.

Output

Returns the deleted label’s immutable ID as a Signal<string>.
Deletion cannot be undone. Gmail system labels such as INBOX, SPAM, and TRASH cannot be deleted.
The action fails before deletion when no label in the connected mailbox matches the supplied name or ID.