File: //opt/relica/uninstall-relica.bash
#!/usr/bin/env bash
set -ex
# NOTE: This script assumes you installed Relica according
# to the installation instructions on our website or with
# https://relica.run. If you installed Relica differently,
# then this script may not complete successfully and you
# will have to remove Relica manually.
echo "Uninstalling Relica"
echo "Stopping and disabling user service"
systemctl --user stop relica
systemctl --user disable relica
rm ~/.local/share/systemd/user/relica.service
systemctl --user daemon-reload
echo "Removing from launcher"
rm -f ~/.local/share/applications/Relica.desktop
echo "Deleting cache and local account information"
rm -rf ~/.relica/
echo "Deleting application folder"
sudo rm -rf /opt/relica/
echo "Finished - Relica has been removed"