#!/bin/bash domain=$(sudo yunohost app setting flood domain) data_dir=$(sudo yunohost app setting flood data_dir) sudo service rtorrent stop sudo service flood stop sudo rm -rf $data_dir sudo rm -f /etc/nginx/conf.d/$domain.d/flood.conf sudo rm -f /etc/systemd/system/flood.service sudo rm -f /etc/systemd/system/rtorrent.service # Remove the user sudo userdel -f flood sudo rm -rf /var/www/flood # Remove the service sudo yunohost service remove flood sudo yunohost service remove rtorrent # Remove rtorrent sudo rm -f /usr/local/bin/rtorrent sudo yunohost app ssowatconf sudo service nginx reload