Delete memory
Give Claude Code a persistent memory. Save and search past conversations with semantic search. 100% local, no API keys required.
npx -y skills add couzip/cc-forever --skill delete-memoryAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Delete memories from the index. Supports deletion by IDs, project, timestamp, or all.
SKILL.md
1.9 KB, as published. Nobody here has run it
Delete Memories
Delete memories from the persistent index.
Arguments
all- Delete all memoriesproject:<name>- Delete all memories for a specific projectbefore:<timestamp>- Delete memories before an ISO timestamp (e.g.,before:2025-01-01)<id1> <id2> ...- Delete specific memory IDs
Arguments: $ARGUMENTS
Steps
1. Parse Arguments
Determine the deletion mode:
- If
$ARGUMENTScontains "all": delete all memories (confirm first) - If
$ARGUMENTSstarts with "project:": extract project name - If
$ARGUMENTSstarts with "before:": extract timestamp - Otherwise: treat as space-separated IDs
2. Confirmation for Destructive Operations
For all or project: deletions, warn the user about the scope of deletion.
3. Execute Deletion
Call mcp__cc-forever-mcp__delete_memory with appropriate parameters:
For all:
{
"all": true
}
For project:
{
"project": "<project-name>"
}
For before timestamp:
{
"before": "<ISO-timestamp>"
}
For specific IDs:
{
"ids": ["<id1>", "<id2>", ...]
}
4. Report Results
Display the deletion result:
Deletion completed:
- Deleted: {deleted_count} memories
- Criteria: {criteria used}
5. Show Updated Stats
Optionally call get_stats to show the remaining memory count.
Examples
/cc-forever:delete all- Delete all memories/cc-forever:delete project:my-app- Delete all memories for "my-app" project/cc-forever:delete before:2025-01-01T00:00:00Z- Delete memories before 2025/cc-forever:delete 2025-01-15T10:30:00.000Z-0 2025-01-15T10:30:00.000Z-1- Delete specific IDs