Delete unused note type
delete-unused-note-typePreview and safely delete an explicitly selected unused Note Type, refusing if notes use it or it is the last type, and requiring impact hash plus confirmation.
Instructions
Previews deleting one explicitly selected Note Type. Refuses if any Note uses the type, even without Cards, or if it is the last Note Type. Requires the reviewed impact hash and explicit confirmation to apply. Requires AnkiConnect v1.
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": {
"noteTypeId": "<noteTypeId>"
},
"name": "delete-unused-note-type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Preview without modifying Anki | |
| noteTypeId | Yes | Explicit stable ID from list-note-types | |
| confirmDeletion | No | ||
| expectedImpactHash | No | Hash from the reviewed deletion preview |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | Yes | ||
| applied | Yes | ||
| blockers | Yes | ||
| hasNotes | Yes | Whether any Note uses this type; null if the type could not be inspected. | |
| noteType | Yes | ||
| verified | Yes | ||
| warnings | Yes | ||
| impactHash | Yes | ||
| noteTypeId | Yes |