Skip to main content
Version: 0.9

Uninstallation

Users, folders and filenames have been renamed from "dashboard" ⇒ "controlpanel". Be aware that the provided commands may not fit your installation. Please change the users, folder and filenames for the commands corresponding to your installation.

danger

You will loose all data that you have stored in your ControlPanel. Note: This will only work if you followed our documentation, you might need to modify the commands to fit your installation.

Stop everything

You need to stop controlpanel and all of its services before you can uninstall it.

cd /var/www/controlpanel
sudo php artisan down

sudo systemctl stop controlpanel

Remove

Service and cronjob

You have to stop and remove the service and cronjob.

sudo systemctl stop controlpanel
sudo systemctl disable controlpanel
sudo rm /etc/systemd/system/controlpanel.service
sudo systemctl daemon-reload
sudo systemctl reset-failed

To open the crontab run: crontab -e and remove the following configuration from crontab.

* * * * * php /var/www/controlpanel/artisan schedule:run >> /dev/null 2>&1

Webconfig and SSL certificates

You now have to remove the webconfig and restart it

# NGINX
sudo unlink /etc/nginx/sites-enabled/controlpanel.conf
sudo rm /etc/nginx/sites-available/controlpanel.conf
sudo systemctl reload nginx
# Apache2
sudo a2dissite controlpanel.conf
sudo rm /etc/apache2/sites-available/controlpanel.conf
sudo systemctl reload apache2

sudo certbot delete --cert-name <Your Domain>

Database and User

You now have to remove the database and user.

sudo mysql -u root -p -e "DROP DATABASE controlpanel;"
sudo mysql -u root -p -e "DROP USER 'controlpaneluser'@'127.0.0.1';"
sudo mysql -u root -p -e "FLUSH PRIVILEGES;"

Files

You now have to remove the files.

sudo rm -rf /var/www/controlpanel

Extra Dependency

You need to uninstall this, use the appropriate PHP version (php -v)

sudo apt remove php8.1-intl

Pterodactyl API Key

Login to your pterodactyl panel and go to the admin page.
Then go to the API tab (/admin/api) and delete the key you made for controlpanel.