Delete note type template
delete-note-type-templatePermanently delete an Anki card template and all cards generated from it. Preview the impact with a dry run, then confirm permanent deletion and review-history loss.
Instructions
Permanently deletes one card template and every card generated from it. Reports notes that may lose their last card and requires explicit impact confirmation.
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": {
"modelName": "<modelName>",
"templateName": "<templateName>"
},
"name": "delete-note-type-template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | When true, report the permanent card impact without modifying Anki | |
| modelName | Yes | Anki note type name. AnkiConnect calls note types "models" in its API. | |
| templateName | Yes | Anki card template name | |
| expectedCardCount | No | Affected card count returned by the dry run; required when dryRun is false and blocks applying changed impact | |
| expectedDesignHash | No | Hash returned by get-note-type-design; required when dryRun is false and blocks stale writes | |
| confirmCardDeletion | No | Must be true when dryRun is false to confirm permanent deletion of generated cards and their review history | |
| confirmNoteDeletion | No | Must be true when affected notes would lose their last card and dryRun is false | |
| expectedNotesLosingLastCardCount | No | Count returned by the dry run for notes that would lose their last card; required when dryRun is false |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | Yes | ||
| impact | Yes | ||
| applied | Yes | ||
| changed | Yes | ||
| modelName | Yes | ||
| templates | Yes | ||
| validation | Yes | ||
| scopeWarning | Yes | ||
| afterDesignHash | Yes | SHA-256 hash of the current CSS and card templates | |
| deletedTemplate | Yes | ||
| beforeDesignHash | Yes | SHA-256 hash of the current CSS and card templates | |
| previousTemplates | Yes | ||
| cardDeletionConfirmed | Yes | ||
| noteDeletionConfirmed | Yes |