learnings_forget
Delete learning rules that match a query, or use --all to remove every rule for that query and reset AnkiWeb recall behavior.
Instructions
Delete learnings matching a query (use --all to wipe every rule for that query)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Delete every rule for the supplied query (default: false) | |
| csv | No | Output as CSV (table and array responses) (default: false) | |
| yes | No | Skip confirmation prompts (explicit confirmation for scripts) (default: false) | |
| json | No | Output as JSON (default: false) | |
| agent | No | Set agent-friendly output defaults (--json --compact --no-input --no-color) (default: false) | |
| plain | No | Output as plain tab-separated text (default: false) | |
| query | Yes | Positional argument <query> | |
| quiet | No | Bare output, one value per line (default: false) | |
| action | No | Delete only rules with this action (boost | hide | alias_of) | |
| select | No | Comma-separated fields to include in output (e.g. --select id,notetype_id,deck_id) | |
| compact | No | Return only key fields (id, name, status, timestamps) for minimal token usage (default: false) | |
| dry-run | No | Show request without sending (default: false) | |
| max-age | No | Maximum acceptable age of local-store data before a stderr hint suggests sync; 0 disables (default: 30m0s) | |
| receipt | No | Write an atomic private run receipt (default: false) | |
| timeout | No | Request timeout (default: 1m0s) | |
| no-cache | No | Bypass response cache (default: false) | |
| no-color | No | Disable colored output (default: false) | |
| no-input | No | Disable all interactive prompts (for CI/agents) (default: false) | |
| no-learn | No | Disable the teach/recall learning loop for this invocation (default: false) | |
| resource | No | Delete only the rule for this resource_id | |
| idempotent | No | Treat already-existing create results as a successful no-op (default: false) | |
| rate-limit | No | Max requests per second (0 to disable; default auto — pace to server rate-limit headers) (default: auto) | |
| data-source | No | Data source for read commands: auto (live with local fallback), live (API only), local (synced data only) (default: auto) | |
| client-profile | No | Select the tenant-gated client profile (env: ANKIWEB_CLIENT_PROFILE) | |
| human-friendly | No | Enable colored output and rich formatting (default: false) | |
| allow-partial-failure | No | Downgrade response-body partial-failure (e.g. partialFailureError) to a warning instead of a non-zero exit (default: false) |