deckPresets.delete
deckPresets_deleteDelete an Anki deck options preset; if decks still use it, provide a replacement preset to reassign them first.
Instructions
Delete a preset, explicitly reassigning dependent decks first.
replacement is required when in use. Reject Default preset deletion. No changes occur on failed preflight; do not promise atomicity across multiple native backend operations.
Anki-Connect method deckPresets.delete. Scope: collection. Effect: write. Completion: operation. Undo: grouped.
Long-running operation: by default the server waits for the final result (see waitForCompletion / timeoutSeconds).
Possible errors: collectionUnavailable, conflict, editorConflict, internalError, invalidParams, notFound, staleSession.
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": {
"preset": "<preset>"
},
"name": "deckPresets_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preset | Yes | Deck options preset: exactly one of {"id": "<presetId>"} or {"name": "<preset name>"}. | |
| session | No | Optional. Collection session ID: the `session` field returned by `collection_get`. Usually omit it — the server then uses the session current at the time of the call. Pass it to make the call fail with `staleSession` instead of acting on a different profile/collection than the one your IDs, cursors and tokens came from. | |
| replacement | No | Preset for decks that use the deleted one: exactly one of {"id": "<presetId>"} or {"name": "<preset name>"}. Required if the preset is in use. | |
| timeoutSeconds | No | MCP option (not sent to Anki): how long to wait for completion. A timeout does not cancel the work; the pending record is returned. | |
| waitForCompletion | No | MCP option (not sent to Anki): poll operations.get until the operation finishes and return its final record. If false, return the operation handle. |