Skip to content
Back to skills

Delete Memory

ASecurity

Delete memories from the index. Supports deletion by IDs, project, timestamp, or all.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 7, 2026
ai-agents

Works with

  • mcp

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add couzip/cc-forever --skill delete-memory --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Delete Memory?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Delete Memory
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/couzip-delete-memory/badge)](https://www.skillsdirectory.com/skills/couzip-delete-memory)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: delete-memory
description: Delete memories from the index. Supports deletion by IDs, project, timestamp, or all.
allowed-tools: mcp__cc-forever-mcp__delete_memory, mcp__cc-forever-mcp__get_stats
user-invocable: false
---

# Delete Memories

Delete memories from the persistent index.

## Arguments

- `all` - Delete all memories
- `project:<name>` - Delete all memories for a specific project
- `before:<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 `$ARGUMENTS` contains "all": delete all memories (confirm first)
- If `$ARGUMENTS` starts with "project:": extract project name
- If `$ARGUMENTS` starts 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:**
```json
{
  "all": true
}
```

**For project:**
```json
{
  "project": "<project-name>"
}
```

**For before timestamp:**
```json
{
  "before": "<ISO-timestamp>"
}
```

**For specific IDs:**
```json
{
  "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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.