| review-status | needs-review |
|---|---|
| review-date | 2025-06-04 |
| reviewer | migration-script |
| migration-notes | Added during 2025 documentation reorganization |
This guide provides instructions for uninstalling OpenSPP from a Debian or Ubuntu system. It covers two main scenarios:
- Complete Uninstallation: Removes the application, configuration, data, and database.
- Partial Uninstallation: Removes the application but keeps your data and configuration for future use.
Warning: A complete uninstallation is irreversible and will permanently delete your data. Before proceeding, it is strongly recommended to create a full backup of your database and filestore.
For detailed backup instructions, refer to the {doc}database_management guide.
Follow these steps to completely remove OpenSPP and all its components from your system.
Stop and Disable (Remove) OpenSPP service
sudo systemctl stop openspp
sudo systemctl disable opensppRemove OpenSPP package and configuration files
sudo apt-get remove --purge openspp-17-daily
sudo rm -rf /etc/openspp
sudo rm -rf /var/lib/openspp
sudo rm -rf /var/log/openspp
sudo rm -f /usr/bin/openspp-server
sudo rm -f /usr/bin/openspp-shellWarning: This will permanently delete all OpenSPP data.
Drop the OpenSPP database and remove the user
sudo -u postgres dropdb name_of_your_db
sudo -u postgres dropuser opensppRemove APT repository configuration and GPG Key
sudo rm -f /etc/apt/sources.list.d/openspp.list
sudo apt-key del "OpenSPP Repository"
sudo apt-get updateIf you want to remove PostgreSQL as well:
Remove PostgreSQL and its data and configuration
sudo apt-get remove --purge postgresql postgresql-client postgresql-common
sudo rm -rf /var/lib/postgresql
sudo rm -rf /etc/postgresqlIf you want to keep the database but remove the application:
Stop, Disable(remove) service, and remove package
sudo systemctl stop openspp
sudo systemctl disable openspp
sudo apt-get remove openspp-17-daily- Keep database and filestore for potential reinstallation
- var/lib/openspp/ and PostgreSQL database remain intact
To reinstall OpenSPP after uninstallation, follow the {doc}../../getting_started/installation_deb.