Tags
Delete a tag
Deletes the tag from the vocabulary of the account and removes it from every entity that carried it.
tags:writetags:write- 120/min
- Server annotation: Destructive
- Server annotation: Idempotent
- Requires human confirmation
- Not reversible
Result
generated from the schema
Not reversible
This tool cannot be undone.
Requires human confirmation
Put this tool on your client's “ask before running” list. The annotations are hints that the server declares, not guarantees: do not decide the approval from destructiveHint alone. The server flags this tool with _meta["anthropic, which clients that honor it use to ask a person before every call.
This is NOT the same as DELETE /api, which unlinks the tag from ONE entity and keeps it. It is NOT reversible. Responds 204 with no body: the tag no longer exists for the API (it disappears from GET /api). 404 if the tag does not exist in the account.
Arguments
Tag identifier.
Limits: min length 1
Idempotency key chosen by the client (a UUID is recommended). Repeating the same key with the same arguments within 24 h returns the stored response without executing again; with different arguments it responds 422. It is the safe way to retry after a network failure.
Limits: min length 1, max length 255
Result
On success the result carries structuredContent with data and meta. These are the attributes of data.
An error is a result with isError: true and the problem in content[0].; there is no structuredContent. See Errors.
The same operation by REST
This tool runs DELETE /api/v1/tags/{tagId}.
Related pages
Link to this section: Related pagesTags
Delete a tag
Deletes the tag from the vocabulary of the account and removes it from every entity that carried it.
Guides
Safe writes
An assistant that can write can also write the wrong thing. Decide which tools need a person, retry without duplicating, and know what a write sets in motion.
Guides
Errors
A tool error is a result with
isError: trueand the problem in the first text block. Branch on itscode.
Was this page helpful?