Factory Reset
This script can be used to completely or partially reset your Ultra.cc service.
Usage Instructions
- Connect to your service via SSH.
- Execute the following command:
bash <(wget -qO- https://scripts.ultra.cc/util-v2/Ultra-Cleanup/main.sh)
- Once you have executed the script, you will be given the following options.
1) Complete reset - delete all data and config.
2) Delete all extra folders and files.
3) Uninstall all applications and their config but don't delete data.
4) Delete data from default directories
Option 1
This option will delete all data on your service, uninstall all your applications, delete configuration files of your applications and will reinstall your webserver (Nginx). The Bash shell will also be reset to its default state.
Option 2
This option will delete all extra files and directories other than the default files and directories on your service.
The default files and directories are media files downloads .bashrc .bash_history .bash_logout watch .wget-hsts .config .profile www bin .apps .ssh
.
Option 3
This option will uninstall all your applications and their configuration files but will not delete your data. It will not remove the applications from your UCP, as this needs to be handled manually. Due to all application data already being deleted, each application uninstall will only take a couple of seconds.
Option 4
This option will delete all data from the default directories, such as bin downloads media watch www
.
If you require further assistance, you can open a support ticket here!
Feedback and suggestions regarding this article are welcome on our Discord server