Delete Tag
delete_tagDelete a workspace tag by ID or name and detach it from all documents. Ambiguous names are rejected with candidate IDs.
Instructions
Delete a workspace-level tag and remove it from every document that references it. Accepts a tag id or name; an ambiguous name is rejected with the candidate ids.
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": {
"tag": "<tag>"
},
"name": "delete_tag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | Tag id or name to delete. Ambiguous tag names are rejected with candidate ids. | |
| workspaceId | No | AFFiNE workspace id. Omit only when AFFINE_WORKSPACE_ID is configured. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | ||
| tagId | Yes | ||
| value | Yes | ||
| deleted | Yes | ||
| warnings | Yes | ||
| workspaceId | Yes | ||
| affectedDocs | Yes | ||
| docMetaSynced | Yes |