Delete taxonomy item
delete_taxonomy_itemDeletes a tag, correspondent, document type, storage path, or custom field after confirmation; documents stay but lose the association, and child tags may also be removed.
Instructions
Delete a tag, correspondent, document type, storage path or custom field for good.
There is no trash for these: the documents stay but lose the tag, correspondent, type, path or field value, and deleting a tag also deletes its child tags (Paperless 3.5 refuses the deletion if that would take child tags of other users). Without confirm it deletes nothing and fails with an error that says the effect (documents affected, child tags that go with it); describe that to the user and call again with confirm=true once they agree.
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": {
"kind": "<kind>",
"item": "<item>"
},
"name": "delete_taxonomy_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | Name or id; see list_taxonomy. | |
| kind | Yes | What to work on; it decides which of the other settings apply. | |
| confirm | No | Must be true to go ahead. Without it nothing changes and the error says what would happen. Describe that to the user and pass true only once they agree, or if they already asked for exactly this. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| kind | Yes | ||
| name | Yes | ||
| message | Yes | What was deleted and what it did to the documents. | |
| also_deleted | No | Tags: the child tags you can see that are deleted with it, with their document counts. On Paperless 3.4 child tags you cannot see (other users') are deleted too; 3.5 refuses the deletion instead. | |
| document_count | Yes | Documents you can see that use it (not those of its child tags). |