Delete deck
delete_deckUse this when the user asks to permanently delete a whole deck, every subdeck under it and all their cards. The first call deletes nothing and returns decks_affected, the affected card IDs and count, and a confirm_token: name every affected deck, ask once, then repeat the same deck with the token. Tokens last ten minutes across reconnects; a changed card or subdeck needs a fresh confirmation. To keep the cards but stop studying them, use archive_deck.
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": {
"deck": "<deck>"
},
"name": "delete_deck"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deck | Yes | The deck's full name, e.g. "Pharm::Cardio" (list_decks has the names). | |
| confirm_token | No | Omit on the first call; pass back the token the first call returned, after the user has confirmed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| deleted | Yes | ||
| pending | Yes | ||
| card_ids | Yes | ||
| expires_ms | Yes | ||
| deck_totals | Yes | ||
| confirm_token | No | ||
| cards_affected | Yes | ||
| decks_affected | Yes | A deck deletion: the decks that go, by name, the deck first and then the decks under it. Empty for a deletion of cards. |