uninstall

uninstall is a command for coding agents from reolink/reolink-cli. It costs 27 tokens per session (533 once invoked), scanned C, original, Apache-2.0.

An uninstall command for removing the reolink-cli and reolink-gateway programs.

In plain words
What is it for?
Use it to uninstall the Reolink tools, or add a purge option when the user explicitly wants their stored configuration, cache, and state removed too.
Why use it?
It removes the installed binaries while keeping configuration, credentials, snapshots, and state by default, reducing the chance of accidental data loss.

Command

Part of the reolink-cli plugin — 1 skill, 7 commands shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/reolink/reolink-cli/uninstall
Clone the repo
git clone --depth 1 https://github.com/reolink/reolink-cli

Or install reolink-cli, the plugin that ships this one along with the rest of its 1 skill, 7 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for uninstall

README.md
[![agentmods](https://agentmods.dev/badge/commands/reolink/reolink-cli/uninstall.svg)](https://agentmods.dev/commands/reolink/reolink-cli/uninstall)
Your own site
<a href="https://agentmods.dev/commands/reolink/reolink-cli/uninstall"><img src="https://agentmods.dev/badge/commands/reolink/reolink-cli/uninstall.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 533 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00027 $0.00533
Opus 5 $0.00014 $0.00267
Sonnet 5 $0.00005 $0.00107
Haiku 4.5 $0.00003 $0.00053

Measured 4d ago against content hash 52dc502b95d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

uninstall scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf ~/.config/reolink-cli ~/.cache/reolink-cli ~/.local/state/reolink-cli
commands/uninstall.md · 56 lines

What it actually says

Uninstall the reolink binaries. Default behaviour is non-destructive — keeps ~/.config/reolink-cli (credentials, monitor rules), ~/.cache/reolink-cli (snapshots), ~/.local/state/reolink-cli. Full purge only if the user asks.

If $ARGUMENTS contains "purge" or "--purge": use the purge variant. Otherwise: use the plain uninstall variant.

--no-interactive below is not optional padding. Uninstalling refuses to run when stdin is not a terminal unless it is present, and a command you launch is never on a terminal. It is the declaration that the deletion was intended rather than reached by accident — confirm with the user before you send it.

The release tarball ships its own uninstall.sh / uninstall.ps1. Run them from inside the extracted tarball directory:

macOS / Linux — plain:

./uninstall.sh --no-interactive

macOS / Linux — purge:

./uninstall.sh --purge --no-interactive

Windows — plain:

.\uninstall.ps1 --no-interactive

Windows — purge:

.\uninstall.ps1 --purge --no-interactive

If the user no longer has the tarball on disk, falling back to manual removal works too:

# macOS / Linux — kill only the gateway from this install prefix,
# never gateways belonging to another installation
pkill -f "$HOME/.local/bin/reolink-gateway"
rm -f ~/.local/bin/reolink-cli ~/.local/bin/reolink-gateway
# (purge only)
rm -rf ~/.config/reolink-cli ~/.cache/reolink-cli ~/.local/state/reolink-cli

After the script runs, print the agent-side manual deregistration steps — they are mandatory because shell can't touch Claude Code / Codex / Copilot plugin state:

  • Claude Code: /plugin uninstall reolink-cli then /plugin marketplace remove reolink-cli
  • Codex: codex marketplace remove reolink-cli
  • Copilot: delete .github/copilot-instructions.md in each workspace
  • Cursor / Gemini: disable in the IDE's plugin settings
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 56 lines · 27 tokens per session scan C 52dc502b95d2

Subscribe to this mod's changes

uninstall is a command published in the GitHub repository reolink/reolink-cli (93 stars, last pushed 7d ago), licensed Apache-2.0. It adds 27 tokens to every session and 533 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.