Delete label
delete_labelDelete a Gmail label or Outlook category from a mailbox. Gmail messages stay but lose the label, while Outlook messages keep the category name; use list_labels to find the ID.
Instructions
Delete a Gmail label or an Outlook category from a mailbox. In Gmail, the label is removed from its messages, which stay in the mailbox, and a label with nested labels can't be deleted until they are. Gmail system labels such as Inbox and Starred can't be deleted. In Outlook, the category leaves the mailbox's category list, but messages that have it keep its name. Call list_labels first to find the label ID.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"label": "<label>"
},
"name": "delete_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | ID of the label or category to delete, as list_labels returns it, or its name. | |
| accountId | No | Account to operate on. Optional when exactly one account is connected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |