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.
- For your account
- For the whole host
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
- With the script
- By hand
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 -sSf 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 -sSf 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.
The programs and the guardian's unit:
systemctl --user disable yoke-guardian.service
rm -f ~/.local/bin/yoke ~/.local/bin/yoke-core ~/.local/bin/yoke-guardian ~/.local/bin/yoke-auth ~/.local/bin/yoke-compose
rm -f ~/.config/systemd/user/yoke-guardian.service
systemctl --user daemon-reload
And, for the data as well, the configuration, the install root and the state directory — once
yoke instance list and yoke app list print nothing:
rm -r ~/.config/yoke ~/.local/state/yoke
rmdir ~/yoke/apps
If your account lingers only for Yoke, stop it lingering: loginctl disable-linger "$USER".
First, what others installed: every account removes its own instances and applications, as For
your account says, and the packages that put a Plugin under /etc/yoke/plugins.d/ or an interface
under /usr/lib/yoke/ are removed with the distribution's package manager, if they are to go. Then stop
the service form:
sudo yoke service stop
- With the script
- By hand
The script removes the programs, the units and the packaging inputs, and refuses while Yoke is running on the host:
curl --proto '=https' --tlsv1.2 -sSf https://github.com/yoke-project/yoke/releases/latest/download/yoke-install.sh | sudo sh -s -- --uninstall host
--purge also removes /etc/yoke, /var/lib/yoke, /usr/lib/yoke and the group yoke-apps, and
refuses while a Plugin, an interface or an application is left:
curl --proto '=https' --tlsv1.2 -sSf https://github.com/yoke-project/yoke/releases/latest/download/yoke-install.sh | sudo sh -s -- --uninstall host --purge
removed /usr/bin/yoke
removed /usr/bin/yoke-core
removed /usr/bin/yoke-guardian
removed /usr/bin/yoke-auth
removed /usr/lib/systemd/system/yoke.service
removed /usr/lib/systemd/user/yoke-guardian.service
removed /usr/lib/sysusers.d/yoke.conf
removed /usr/lib/tmpfiles.d/yoke.conf
removed /etc/yoke
removed /var/lib/yoke
removed /usr/lib/yoke
removed the group yoke-apps
Yoke is removed from this host, with its data.
The programs, the units and the packaging inputs:
sudo systemctl disable yoke.service
sudo rm -f /usr/bin/yoke /usr/bin/yoke-core /usr/bin/yoke-guardian /usr/bin/yoke-auth /usr/bin/yoke-compose
sudo rm -f /usr/lib/systemd/system/yoke.service /usr/lib/systemd/user/yoke-guardian.service
sudo rm -f /usr/lib/sysusers.d/yoke.conf /usr/lib/tmpfiles.d/yoke.conf
sudo systemctl daemon-reload
And, for the data as well, the configuration and the compositions, the deployment's stores, and the
group — once nothing is left under /etc/yoke/plugins.d/, /usr/lib/yoke/ or /var/lib/yoke/apps/:
sudo rm -r /etc/yoke /var/lib/yoke /usr/lib/yoke
sudo groupdel yoke-apps