Uninstall
Undo the setup first, then remove the program.
1. Remove hooks and the login service#
$ togo uninstallThis takes Togo's entries out of every agent's hook settings and removes the login service. On macOS it also turns off keep-awake and removes the battery-mode sudoers rule, /etc/sudoers.d/togo-awake, so sudo may ask for your password. If one step fails, it carries on with the rest. Your own settings in the agents' files stay as they are.
You can also undo each part on its own:
$ togo hooks uninstall
$ togo service uninstall2. Remove the program#
Delete the togo binary. command -v togo prints where it is. The install script puts it in ~/.togo/bin and may link it from /usr/local/bin/togo. If so, delete the link too.
What stays#
togo uninstall leaves the helper's data folder in place. By default that is ~/.togo, or the folder in $TOGO_HOME if you set it. Only your user can read it. Among other files, it holds:
keys/host.jsonandkeys/devices.json: the machine's keys and the paired devices.hooks.json: the record of hook entries the helper added.sessions.jsonandrecent.json: the session list and recently used folders.bin/togo: the program, if you used the install script.run/togo.sock: the daemon socket, present while the daemon runs.log/daemon.log: the daemon log.
Delete the folder to remove the keys and the session list for good:
$ rm -r ~/.togoYour tmux sessions are not touched.