Delete Tag
delete_tagDelete a workspace-level tag by ID or unique name, removing it from every document that references it; 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 |
|---|---|---|---|
| ok | No | ||
| tag | No | ||
| code | No | ||
| error | No | ||
| tagId | No | ||
| value | No | ||
| deleted | No | ||
| details | No | ||
| warnings | No | ||
| causeCode | No | ||
| retryable | No | ||
| workspaceId | No | ||
| affectedDocs | No | ||
| docMetaSynced | No | ||
| recoveryGuidance | No |