---
name: wipe
description: Scan and clean up recent agent history across all storage locations. Use when user says "clear the last hour", "wipe recent history", "delete what we just talked about", "clean up", "scan for saved data", or needs to remove traces from a time range. Requires Agent Root Key.
metadata:
  openclaw:
    emoji: "\U0001F9F9"
---

# Wipe — History Scanner & Cleanup

Scan all storage locations for data captured in a time range, generate a review report, and execute user-approved cleanup actions. The scanner automatically discovers storage locations on the system.

## Workflow

### 1. Authenticate
- Verify the Agent Root Key (see `root-key` skill).
- If not verified, refuse to proceed.

### 2. Scan
- Call `wipe_scan` with the requested time range.
  - Examples: `{ "since": "30m" }`, `{ "since": "2h" }`, `{ "since": "2026-02-12T00:00:00Z" }`
- The scanner automatically discovers and checks all storage locations.
- Returns results grouped by location with item counts and previews.

### 3. Report
- Generate a markdown report from the scan results.
- Summarize: how many items per location, what can be auto-deleted, what needs manual attention.

### 4. Review & Execute
- Wait for the user's instructions: "delete all", selective deletion, or skip.
- Call `wipe_execute` with the approved actions.
- Each action: `{ location, action: "delete"|"move"|"skip", itemIds }`.
- Report results.

## Keyword Search

Use `wipe_search` to find specific content across all storage locations:
- Call `wipe_search` with `{ "keywords": ["term1", "term2", "phrase three"] }`
- Returns all matches with surrounding context, grouped by location.
- Use this to find where specific content appears before deciding what to clean up.

## Sanity Check

When run while private mode is active, the scan verifies nothing is leaking:
- If private mode is working, the scan should return empty for the time range.
- If something leaked, the report shows exactly what and where.

## Trigger Phrases

- "clear the last 30 minutes" / "wipe the last hour"
- "delete my recent history" / "clean up"
- "scan for saved data" / "what's been captured?"
- "is private mode working?" (sanity check)
- "search for X across all storage" / "find everywhere X appears"
