memory_delete
Delete stored agent memories by ID, exact category, or category prefix. Safely remove specific entries or batches without affecting unrelated data; returns count deleted.
Instructions
Delete memories from the vector store. Mutually exclusive modes (priority id > category > category_prefix): by id (single row), by exact category (all rows in that category), or by category prefix (batch, e.g. 'test:' to clean test entries, or 'project:oldname:' after migration). Returns count deleted + mode. Idempotent — 0 deleted if no match. Passing no args is a no-op (never full-table delete).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Delete one row by its rowid (safest, precise). | |
| category | No | Delete all rows with this exact category. | |
| category_prefix | No | Delete all rows whose category starts with this prefix (appends %). |