Skip to main content
Version: 0.17.0

Removing

Removing Yoke takes away what installing it placed, and keeps the data unless you ask for it to go too. The data is what instances and applications hold — their state, their installed bundles — and those are removed by their own commands first, never by deleting directories under them: only Yoke knows which images an application pulled and which files a unit wrote.

First, the instances and the applications, if they are to go: stop and remove each instance, remove each application, and reclaim what is left — removing an application does not touch the container images Yoke pulled for it, and yoke app prune reclaims those (reclaiming).

yoke instance list
yoke instance stop bench-a
yoke instance remove bench-a
yoke app list
yoke app remove com.example.station
yoke app prune

The script removes the programs and the guardian's unit, and refuses while an instance of this account is running:

curl --proto '=https' --tlsv1.2 -sSfL https://github.com/yoke-project/yoke/releases/latest/download/yoke-install.sh | sh -s -- --uninstall account

--purge also removes the configuration, the install root and the state directory, and refuses while an instance or an application is left:

curl --proto '=https' --tlsv1.2 -sSfL https://github.com/yoke-project/yoke/releases/latest/download/yoke-install.sh | sh -s -- --uninstall account --purge
removed /home/you/.local/bin/yoke
removed /home/you/.local/bin/yoke-core
removed /home/you/.local/bin/yoke-guardian
removed /home/you/.local/bin/yoke-auth
removed /home/you/.local/bin/yoke-compose
removed the guardian's user unit
removed the install root /home/you/yoke/apps
removed /home/you/.config/yoke
removed /home/you/.local/state/yoke
Yoke is removed from this account, with its data.

If your account lingers only for Yoke, stop it lingering: loginctl disable-linger "$USER".