Skip to content
Cloud & Infrastructure
Command

/cache-clean

Preview + clean cached artifacts older than 7 days

BOOST
From plugin
reolink-cli
1167 skills7 commands
Install
> /plugin marketplace add reolink/reolink-cli
> /plugin install reolink-cli@reolink-cli

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/cache-clean

Context preview

What this command does when you run it.

Preview + clean cached artifacts older than 7 days

Command definition

cache-clean.md
description: Preview + clean cached artifacts older than 7 days
argument-hint: [--older-than 30d]

Clean old cache entries (snapshots, TTS PCM clips, etc.). The cache lives in the platform cache directory — `~/.cache/reolink-cli/` on Linux, `~/Library/Caches/reolink-cli/` on macOS, `%LOCALAPPDATA%\reolink-cli\cache\` on Windows. Run `reolink-cli cache status` to see the resolved path rather than assuming one.

**Step 1 — preview (dry-run, always first):**

Run `reolink-cli cache clean --output json` with any extra arguments in `$ARGUMENTS` (default retention is 7 d if none given). Show the candidate list with file count, total bytes, and the oldest file's age. Do NOT proceed to deletion yet.

**Step 2 — confirm:**

Ask the user to confirm deletion. Only if they explicitly say yes, proceed.

**Step 3 — apply:**

Re-run with `--apply` appended and show the deleted file count + freed bytes.

Never `--apply` without a confirmed dry-run output above it.

Ships withreolink-cli

Official command-line tool for Reolink IP cameras, doorbells and NVRs — LAN only, no cloud. Snapshots, PTZ, RTSP/RTMP stream URLs, two-way audio (talkback/TTS), motion and AI detection, event monitoring, VOD download. JSON output and a built-in MCP server. Works with Home Assistant, Frigate and go2rtc.

Get the whole plugin
Stats
117
Stars
14
Forks
Active
Maintenance
Shell
Language
Apache-2.0
License
13d ago
Last commit
3mo ago
Created
3h ago
Added

Repo: reolink/reolink-cli

Other commands on reolink-cli.