Skip to content

archgate clean

Remove the CLI cache directory.

Terminal window
archgate clean

Removes ~/.archgate/, which stores the CLI’s config, cache, and (for binary installs) the downloaded archgate executable. Safe to run at any time — the directory is recreated automatically when needed.

If the running binary was installed to ~/.archgate/bin/, clean preserves that bin/ directory so it does not delete the executable it is currently running as, and removes everything else. If ~/.archgate/ does not exist, it prints Nothing to clean. and exits without error.

Terminal window
archgate clean
/home/user/.archgate cleaned up

When the running binary lives under ~/.archgate/bin/, the message notes that bin/ was kept:

/home/user/.archgate cleaned up (bin/ preserved)