Skip to main content

Factory Reset

This script can be used to completely or partially reset your Ultra.cc service.

This is an unofficial script that is provided for your convenience. The script is provided as-is and may not be updated or maintained by Ultra.cc. Clients are welcome to use and customize unofficial scripts for their unique needs and requirements. Unofficial support may be offered via Discord only and at the sole discretion of Ultra.cc staff. Use at your own risk.

The script cannot uninstall applications from your UCP so you have to uninstall them manually but it will not take more than a second because all containers will be removed by the script.
Any data deleted or application uninstalled by the script cannot be reverted. Please do not run the script without backing up important data.

Usage Instructions

  • Connect to your service via SSH.

  • Execute the following command:

bash <(wget -qO- https://scripts.usbx.me/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.