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