decks.delete
decks_deleteDelete Anki decks and their cards after explicit confirmation, including child decks and cleanup of resulting cardless notes.
Instructions
Delete decks and their cards with explicit acknowledgement.
Includes native child-deck deletion and removal of resulting cardless notes; deleting Default follows native behavior.
Anki-Connect method decks.delete. Scope: collection. Effect: write. Completion: completed. Undo: perItem.
Possible errors: collectionUnavailable, editorConflict, internalError, invalidParams, invalidState, notFound, staleSession.
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>",
"deleteCards": "<deleteCards>"
},
"name": "decks_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| decks | Yes | Decks, each exactly one of {"id": "<deckId>"} or {"name": "<full deck name, e.g. Japanese::Verbs>"}. | |
| session | No | Optional. Collection session ID: the `session` field returned by `collection_get`. Usually omit it — the server then uses the session current at the time of the call. Pass it to make the call fail with `staleSession` instead of acting on a different profile/collection than the one your IDs, cursors and tokens came from. | |
| deleteCards | Yes | Must be true: confirms that the decks' cards are deleted as well. |