notes.delete
notes_deleteDelete Anki notes and their associated cards by note ID, returning item-level errors for missing IDs.
Instructions
Delete notes and their cards; missing IDs are item errors.
Anki-Connect method notes.delete. Scope: collection. Effect: write. Completion: completed. Undo: perItem.
Possible errors: collectionUnavailable, 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": {
"ids": "<ids>"
},
"name": "notes_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Note IDs to delete together with their cards (decimal string, e.g. "1700000000001"). | |
| 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. |