Overview
Thememory delete command permanently removes a memory from the vault. The memory file and all associated data (including embeddings) are deleted.
Syntax
Arguments
The memory ID or ID prefix. You can use the full ID or just the first 12 characters.
Examples
Delete using ID prefix
Delete using full ID
When memory doesn’t exist
Workflow: Find and Delete
Typical workflow to delete a memory:1. Find the memory
2. Get the ID from search or file
3. Delete the memory
What Gets Deleted
When you delete a memory:- Memory file: The
.mdfile invault/project/is removed - Database record: Entry in the SQLite database is deleted
- Embeddings: Vector embeddings (if any) are removed
- Full-text index: FTS5 search index entry is cleared
Use Cases
Remove outdated information
Clean up test entries
Remove sensitive information
If you accidentally saved sensitive data:Safety Considerations
Before deleting:
- Verify the ID: Use
memory searchto confirm you’re deleting the right memory - Review details: Run
memory details <id>to see the full content - Back up if needed: Copy the file from
~/.memory/vault/before deleting
Bulk deletion:
To delete multiple memories, use a script:Alternative: Archive Instead of Delete
Instead of deleting, consider:- Move to archive project: Manually move the file to a different project folder
- Tag as archived: Update the memory with an
archivedtag - Keep for reference: Leave it unless it contains sensitive data
Related Commands
memory search- Find memories to deletememory details- Review before deletingmemory save- Create a new memory