Home / Commands / QingYunA/answer-me-with-html

clean

Clean up old Answer me with HTML pages, videos and the narration cache

commandLicense: MIT Source: QingYunA/answer-me-with-html

Install

Copy this folder into your Claude Code project (needs Node.js):

curl -fsSL --create-dirs -o .claude/commands/clean.md https://raw.githubusercontent.com/QingYunA/answer-me-with-html/HEAD/skills/commands/clean.md

Or install it for every project:

curl -fsSL --create-dirs -o ~/.claude/commands/clean.md https://raw.githubusercontent.com/QingYunA/answer-me-with-html/HEAD/skills/commands/clean.md

File content

Made by its original authors and shared under MIT. We show it unchanged, with credit and a link to the source. Source ↗

---
description: Clean up old Answer me with HTML pages, videos and the narration cache
argument-hint: "[--days <days>] | [--all]"
allowed-tools: Bash(node *)
---

## Current usage (dry run, nothing deleted)

!`node "${CLAUDE_PLUGIN_ROOT}/answer-me-with-html/scripts/am.mjs" clean --dry-run`

## What to do

CLI: `node "${CLAUDE_PLUGIN_ROOT}/answer-me-with-html/scripts/am.mjs" clean …`

User arguments: `$ARGUMENTS` (accept only `--days <non-negative integer>` or `--all`; ignore anything else)

- Above is a dry run with the default (30 days). When the user gave `--days N` or `--all`, first run `clean --dry-run` again with those arguments. Then use AskUserQuestion to ask the user whether to proceed, with these options: proceed as in the dry run (recommended) / clean everything (`--all`) / do not clean up for now.
- After the user agrees, run it once more with the same arguments (or `--all`) and without `--dry-run`.
- By default it deletes pages, videos and saved drafts older than 30 days and empties the narration cache (the next video synthesizes narration again). The config file is always kept.
- When done, say in one sentence how much space was freed. Do not generate an explainer page.