#!/bin/bash set -euo pipefail # Purge the installed package — removes binary, web assets, /etc/party, and the party user if dpkg -s party &>/dev/null; then dpkg --purge party fi # Remove cloned repo rm -rf /srv/party # Remove migrate rm -f /usr/local/bin/migrate # Remove Go apt-get remove -y golang-go build-essential wget apt-get autoremove -y echo "Teardown complete."