uninstall notifies the control plane using the host’s daemon identity, marks the host revoked,
stops the systemd service, removes the sshd hook, and removes the installed binary.
Add --purge to also remove the local daemon state and the custos system user:
What the uninstaller removes
/etc/ssh/sshd_config.d/70-custos.conf/etc/systemd/system/custosd.service/usr/local/bin/custosd/usr/local/bin/custosd.prev/var/lib/custos— only with--purge- the
custossystem user — only with--purge
Verifying by hand
To check for and remove any remaining local traces:custos group for custosd exec, remove that membership
before deleting the group: