uninstall

uninstall is a command for coding agents from px0-ai/px0. It costs 0 tokens per session (464 once invoked), scanned C, original, MIT.

A complete removal command for px0, including its background service, stored data, and installed package.

In plain words
What is it for?
Use it when you want to uninstall px0 entirely from a machine. Add --yes to skip the confirmation prompt.
Why use it?
It removes everything in one confirmed operation instead of leaving the service, files, or package behind. Deleted store data cannot be restored unless you made an export backup.

Command

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/px0-ai/px0/uninstall
Clone the repo
git clone --depth 1 https://github.com/px0-ai/px0

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/px0-ai/px0/uninstall.svg)](https://agentmods.dev/commands/px0-ai/px0/uninstall)
Your own site
<a href="https://agentmods.dev/commands/px0-ai/px0/uninstall"><img src="https://agentmods.dev/badge/commands/px0-ai/px0/uninstall.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 464 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.00000 $0.00464
Opus 5 $0.00000 $0.00232
Sonnet 5 $0.00000 $0.00093
Haiku 4.5 $0.00000 $0.00046

Measured 5d ago against content hash a7973af53954, 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 5d 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.

deliberately leaving the store behind and telling you to run `rm -rf ~/.px0`
docs/commands/uninstall.md · 58 lines

What it actually says

px0 uninstall

Stop the daemon, remove its scheduler unit, delete the entire store, and uninstall the px0 package itself. This is the one command that removes px0 completely rather than changing what it does.

Implemented by px0/cli.py, reusing px0/daemon.py's uninstall and px0/update.py's install-mechanism detection.

px0 uninstall [--yes]

What it does

  1. Stops the running daemon and removes its scheduler unit (the same as px0 daemon uninstall).
  2. Deletes the store at PX0_HOME (~/.px0 by default) — every workflow, guideline, brain file, credential, run record, and version history.
  3. Uninstalls the px0 package itself, via pipx or pip, whichever installed it.

Each step only runs if there is something to do: a store that was never initialized is skipped, and the package step still runs even without a store.

Options

--yes

Skip the confirmation.

  • Input: flag, no value. Default off.
  • Without it, px0 uninstall prints exactly what it is about to do and asks once before touching anything. There is no partial undo: once the store is deleted, only a backup made with px0 store export can bring it back.
px0 uninstall
px0 uninstall --yes

Relationship to install.sh --uninstall

install.sh --uninstall stops at the package and the scheduler unit, deliberately leaving the store behind and telling you to run rm -rf ~/.px0 yourself. px0 uninstall is the same operation carried the rest of the way: it removes the store too, with a confirmation in between.

Exit codes

Code When
0 Uninstalled, or cancelled at the confirmation
1 The confirmation could not be asked (no terminal, no --yes), or the package uninstall failed
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. 5d ago First seen · 58 lines · 0 tokens per session scan C a7973af53954

Subscribe to this mod's changes

uninstall is a command published in the GitHub repository px0-ai/px0 (246 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 464 tokens. 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.