Delete unused Anki tags
delete-unused-tagsPreview and remove unused tag registrations from the active Anki collection after confirming the reviewed preview. Cleans up orphaned tags without changing note tags or deleting notes and cards.
Instructions
Previews and removes tag registrations that no Note uses in the active collection. Does not remove tags from Notes or delete Notes or Cards. Requires AnkiConnect v1 and confirmation of the reviewed preview.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "delete-unused-tags"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Preview without modifying Anki. | |
| confirmDeletion | No | Confirm cleanup of unused tags across the active collection. | |
| expectedImpactHash | No | Hash from the reviewed tag cleanup preview. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | Yes | ||
| applied | Yes | ||
| profile | Yes | ||
| blockers | Yes | ||
| verified | Yes | ||
| warnings | Yes | ||
| impactHash | Yes | ||
| unusedTags | Yes | ||
| deletedCount | Yes | ||
| registeredTagCount | Yes |