Delete deck and cards
delete-deck-and-cardsPreview and apply deletion of a normal Anki deck and all its descendant decks and Cards using a dry-run impact preview, confirmation flag, and impact hash to guard against accidental loss.
Instructions
Previews deletion of one normal deck and all descendants. Applying requires dryRun: false, the reviewed impactHash as expectedImpactHash, and confirmDeletion: true. Changed deck identities, Card placement, or Note data block deletion. Default/filtered decks, borrowed-out Cards, incomplete data, and excessive impact are blocked. Surviving sibling Cards in other decks are preserved and verified. No backup or rollback is created.
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": {
"name": "<name>"
},
"name": "delete-deck-and-cards"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact root deck name; its descendants are included in deletion | |
| dryRun | No | ||
| confirmDeletion | No | Must be true after user approval when applying destructive deck/Card loss | |
| expectedImpactHash | No | impactHash from a complete reviewed preview; required when applying |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deck | Yes | ||
| dryRun | Yes | ||
| exists | Yes | ||
| impact | Yes | ||
| applied | Yes | ||
| blockers | Yes | ||
| verified | Yes | ||
| warnings | Yes | ||
| impactHash | Yes | ||
| deletedDeck | Yes | ||
| profileName | Yes | ||
| deletedCards | Yes | ||
| deletedDecks | Yes | ||
| impactComplete | Yes |