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.
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 |