Score:0

Wipe everything from Ubuntu 22.04 except for the OS

pl flag

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!

user535733 avatar
cn flag
Does this answer your question? [Resetting Ubuntu to factory settings](https://askubuntu.com/questions/591167/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.
Score:2
cn flag

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.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.