Skip to content

Uninstalling

aegis uninstall

aegis uninstall lists what it will remove and asks before removing anything:

This removes aegis from this machine:
  /home/you/.local/bin/aegis
  /home/you/.aegis/marketplace
  /home/you/.config/aegis
  /home/you/.config/aegis.json
› Remove aegis from this machine? [y/N]:
› Also remove the content Aegis delivered (CLAUDE.md, settings, skills, agents)? [y/N]:

Both questions default to no.

The first question removes every copy of the aegis command, the Claude Code plugin (which is also removed from Claude Code), the command's settings and your saved API key.

Uninstalling doesn't revoke your API key. If it should stop working, ask an administrator to revoke it.

The files Aegis delivered

The second question is about the files Aegis delivered: CLAUDE.md, settings, skills and agents, in your home folder and in each repository you set up.

If you answer no, the files stay where they are and stop being updated. Any MCP server that Aegis set up to start through aegis can't start any more, and aegis uninstall lists them.

If you answer yes:

  • Files Aegis delivered are removed. Files you wrote yourself, including your own skills and agents beside the delivered ones, aren't touched.
  • A delivered file you've edited is kept and listed at the end. Add --force to remove those too.
  • ~/.claude.json belongs to Claude Code, so it's kept. Only the MCP servers Aegis added are removed from it.
  • In each repository, the lines Aegis added to .git/info/exclude go with the files.

Seeing what would be removed

aegis uninstall --dry-run --remove-content

This removes nothing and asks nothing.

Without the questions

aegis uninstall --yes                    # remove aegis, keep delivered files
aegis uninstall --yes --remove-content   # remove aegis and delivered files

Options

Option Effect
--yes Remove aegis without asking
--remove-content Also remove delivered files, without asking
--keep-content Keep delivered files, without asking
--force When removing delivered files, also remove ones you've edited
--dry-run Show what would be removed, and remove nothing

Windows

aegis.exe is removed a few seconds after the command finishes. If it was in the default folder, that folder is taken off your PATH. Terminals that are already open keep the old PATH until you close them.