set -eux

# See comments in install script
app=$YNH_APP_INSTANCE_NAME

domain=$(sudo yunohost app setting $app domain)

sudo rm -rf /var/www/$app
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf

sudo service nginx reload
