How to uninstall MyAgens
Uninstalling MyAgens is two steps: stop and remove the background service, then delete the files. The uninstall script only touches the service (it leaves your checkout, your .env, and your data/ folder in place), so nothing is deleted until you say so.
Run the commands from inside your MyAgens folder (the directory the installer cloned into). If you are not sure where it is, the panel's Setup view shows the install path, or you can search for a folder named myagens.
Remove the service
macOS
MyAgens runs as a per-user LaunchAgent (sh.gyorgy.myagens), so no sudo is needed. From your MyAgens folder:
./scripts/uninstall-service.sh
This stops the agent and removes it from your login session. It will not start again on reboot.
Linux
MyAgens runs as a systemd service (myagens). From your MyAgens folder:
./scripts/uninstall-service.sh
This stops and removes the systemd unit. At install time the setup also added a scoped, passwordless sudoers rule so the service could manage itself; if you want to be thorough, check /etc/sudoers.d/ for a myagens entry and remove it with sudo visudo -f /etc/sudoers.d/myagens.
Windows
MyAgens runs as an NSSM service (or a Task Scheduler entry), both named myagens. Open an Administrator PowerShell, change into your install folder, and run:
.\scripts\windows\uninstall.ps1
This removes the service or scheduled task. It offers to delete the install directory too; say yes only if you also want the files gone (see the next section for what that includes).
Delete the files
Removing the service leaves everything on disk. To finish a clean removal, delete:
- The MyAgens folder: the checkout the installer created. This holds the code, the build, and your
.env(which contains your bot token, so it is worth deleting even if you keep nothing else). - Your workspace: where your agents do their work. Unless you changed
WORKDIR, this is~/MyAgens-Workspace. Back up anything you want to keep first; this can hold files your agents created.
On macOS and Linux:
rm -rf /path/to/myagens ~/MyAgens-Workspace
On Windows, delete the install folder and MyAgens-Workspace from your home directory in Explorer, or let uninstall.ps1 remove the install folder for you.
Also worth doing
- Delete the Telegram bot if you will not reuse it. Message @BotFather, send
/deletebot, and pick your bot. See Create a Telegram bot with BotFather for context. - The installed tools stay. Node, git, and the Claude CLI were installed as general-purpose tools and are left in place, since other things on your machine may use them. Remove them yourself if you want (
brew uninstallon macOS, your package manager on Linux,winget uninstallon Windows). - Your Claude login is separate. MyAgens uses the Claude CLI's own login, stored under
~/.claude. Uninstalling MyAgens does not sign you out or touch it.
Changed your mind, or just moving to a new machine? You do not have to uninstall to reinstall; re-running the installer updates in place and keeps your fleet, memory, and settings. See How to install MyAgens on macOS, Linux, or Windows.
More in Installation