Delete notes and cards
delete-notes-and-cardsPreview deletion first, then permanently delete explicit Anki notes and all their generated cards using an approved impact hash; changed notes, tags, profile, or card IDs block the batch.
Instructions
Previews deletion of explicit Note IDs and all their generated Cards. Defaults to dryRun. Applying requires the reviewed impactHash as expectedImpactHash and confirmDeletion: true. Missing Notes or changed profile, Note content, tags, or Card IDs block the entire batch. Successful deletion is verified with native searches. 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": {
"noteIds": "<noteIds>"
},
"name": "delete-notes-and-cards"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Preview Notes and generated Cards without deleting anything | |
| noteIds | Yes | Explicit Note IDs; duplicates are ignored. Search queries are not accepted. | |
| confirmDeletion | No | Must be true when applying, after the user approves permanent Note/Card data loss | |
| expectedImpactHash | No | impactHash returned by a complete preview; required when dryRun is false |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | Yes | ||
| impact | Yes | ||
| applied | Yes | ||
| blockers | Yes | ||
| verified | Yes | ||
| warnings | Yes | ||
| impactHash | Yes | Null if any requested Note is missing or could not be loaded; no partial batch is deleted | |
| profileName | Yes | ||
| deletedNotes | Yes | ||
| missingNoteIds | Yes |