I was wondering if it is possible to wipe an Ubuntu Server (22.04) expect for the operating system. I want to uninstall all software and files but not Ubuntu itself, similar to a factory reset on a phone. For some more insight: A Galaxy (https://galaxyproject.github.io/) server was installed on the Ubuntu server by using git. This Galaxy server uses SQLite as the database and a built-in HTTP server. The server has to be deleted in order to manually install a new Galaxy server through Ansible. Thanks in advance!
Asked
Active
Viewed 2,962 times
0
-
2Does this answer your question? Resetting Ubuntu to factory settings. The lack of proper management and maintenance tools is indeed one disadvantage to using unpackaged software. Consider installing such software into an LXD container. – user535733 Oct 05 '22 at 12:18
1 Answers
2
The only way to really "reset" is a fresh install, erasing and reformatting the disk.
All the rest involves manual cleanup, i.e. removing the software and configuration files. When using the APT system, an apt purge
will also remove residual config. When using third party installation procedures, you are on your own: there might be an official "uninstallation" procedure, which you should attempt first before falling back on manual file deletion.

vanadium
- 88,010