How do I uninstall Hermes quickly? The most direct way for officials is to perform hermes uninstall. If you want to clean up more thoroughly manually, the order should be: stop the gateway service first, then delete the CLI, repository directory, and ~/.hermes. This is cleaner.
How to do standard uninstallation
If you are using the official uninstaller, just run hermes uninstall. It will give you the option of whether to keep the ~/.hermes/ configuration or not, for those who want to reinstall it later. If you want to do it manually, the official steps are: delete the ~/.local/bin/hermes first, then delete the Hermes repository directory, and finally delete the ~/.hermes as needed.
Why stop the gateway before uninstalling?
If Hermes' gateway is running as a system service, stopping the service first will prevent residual processes from continuing to occupy ports or restart. The official documentation gives two examples: systemctl --user disable hermes-gateway can be used under Linux and launchctl remove ai.hermes.gateway can be used under macOS. Before doing so, it is best to perform hermes gateway stop to stop the running gateway.
To determine whether it has been uninstalled, focus on three things: whether the CLI command is still there, whether the repository directory is still there, and whether the old configuration is still ~/.hermes. If you're ready to reinstall, it's convenient to keep the ~/.hermes; If you want to completely empty the environment, delete it as well.
In a word: The key to a clean Hermes uninstallation is not to just run the uninstall command, but to stop the gateway first, and then delete the CLI, repository, and ~/.hermes.