delete_label
Delete a Gmail label DEFINITION by name. The messages that carried it are NOT deleted — they only lose the label; the count of affected messages is returned. The name is matched case-insensitively but EXACTLY (never partially), system labels (INBOX/STARRED/CATEGORY_* …) are refused, and a name that matches nothing deletes nothing. Pass account when more than one Gmail account is connected. Needs gmail.modify — accounts connected before this feature get a reconnect hint. This is destructive and cannot be undone (the label has to be re-created) — confirm with the user first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Label name to delete, matched case-insensitively but EXACTLY (never partially). | |
| account | No | Account label to delete from (see list_accounts). Required when several Gmail accounts are connected. |