Delete decks
delete_decksDeletes Anki decks by name, optionally removing all their cards permanently. Use with care because deletions cannot be undone through the API; confirm with the user before calling.
Instructions
Deletes decks by name. WARNING: with cardsToo=true every card in those decks is permanently deleted as well; recent AnkiConnect versions require cardsToo=true and refuse otherwise. Cannot be undone through this API. Confirm with the user before calling. Returns null on success.
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": {
"decks": "<decks>"
},
"name": "delete_decks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| decks | Yes | Names of the decks to delete. | |
| cardsToo | No | true deletes the cards in those decks as well. |