delete_label
Permanently delete a user label from an account, removing it from every message without deleting the messages themselves. System labels cannot be deleted and the action is irreversible.
Instructions
Permanently delete a user label from one account. The label is removed from every message that carried it; the messages themselves are untouched. Not reversible — the label id is gone and must be recreated. System labels (INBOX, SENT, STARRED, …) cannot be deleted.
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": {
"account": "<account>",
"label_id": "<label_id>"
},
"name": "delete_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Account id ("personal", "tamu"). | |
| label_id | Yes | Label id (from get_labels) to delete. |