Replies: 1 comment
|
There's no CLI command for it. The npx surface is only A purge does exist, but only on the Postgres/team server: // DELETE /v1/projects/:projectId/memory — forget EVERYTHING captured for a
// project (observations, raw events, sessions, jobs). Keeps the project shell.
app.delete('/v1/projects/:projectId/memory', writeAuth, this.asyncHandler(async (req, res) => {That route is in For local, it's a SQLite file at CREATE TABLE IF NOT EXISTS memory_items (
...
project_id TEXT NOT NULL,
...
FOREIGN KEY(project_id) REFERENCES projects(id) ON DELETE CASCADE,
cp ~/.claude-mem/claude-mem.db ~/claude-mem.db.bak # stop the server first
sqlite3 ~/.claude-mem/claude-mem.dbPRAGMA foreign_keys = ON; -- off by default per connection; without it nothing cascades
SELECT id, name FROM projects; -- find the right id
DELETE FROM projects WHERE id = 'the-id';The If you'd rather keep the project registered and only wipe what it captured (what the server route does), delete from |
Uh oh!
There was an error while loading. Please reload this page.
How do I purge a project from memory?
All reactions