/
How to Manually Remove Security Server Installation?
How to Manually Remove Security Server Installation?
Security Server installation can be removed manually by removing X-Road packages and configuration directories.
Step-by-step guide
Security Server installation can be removed manually by executing the shell script below.
Ubuntu 18/20
remove.sh
#!/bin/sh
set -x
sudo apt-get purge xroad-base -y
sudo apt-get autoremove -y
sudo rm -rf /etc/xroad
sudo rm -rf /usr/share/xroad
sudo rm -rf /var/lib/xroad
sudo rm -rf /var/log/xroad
sudo rm -rf /var/tmp/xroad
sudo rm -rf /etc/xroad.properties
sudo apt-get purge nginx -y
sudo -u postgres dropdb messagelog
sudo -u postgres dropdb serverconf
sudo -u postgres dropdb op-monitor
sudo -u postgres psql -c "drop user serverconf"
sudo -u postgres psql -c "drop user serverconf_admin"
sudo -u postgres psql -c "drop user messagelog"
sudo -u postgres psql -c "drop user messagelog_admin"
sudo -u postgres psql -c "drop user opmonitor"
sudo -u postgres psql -c "drop user opmonitor_admin"
sudo apt-get purge postgresql -y
sudo rm -rf /var/lib/postgresql
RHEL7/8
remove.sh
#!/bin/sh
set -x
sudo yum remove xroad-base -y
sudo rm -rf /etc/xroad
sudo rm -rf /usr/share/xroad
sudo rm -rf /var/lib/xroad
sudo rm -rf /var/log/xroad
sudo rm -rf /var/tmp/xroad
sudo rm -rf /etc/xroad.properties
sudo yum remove nginx -y
sudo -u postgres dropdb messagelog
sudo -u postgres dropdb serverconf
sudo -u postgres dropdb op-monitor
sudo -u postgres psql -c "drop user serverconf"
sudo -u postgres psql -c "drop user serverconf_admin"
sudo -u postgres psql -c "drop user messagelog"
sudo -u postgres psql -c "drop user messagelog_admin"
sudo -u postgres psql -c "drop user opmonitor"
sudo -u postgres psql -c "drop user opmonitor_admin"
sudo yum remove postgresql -y
sudo rm -rf /var/lib/pgsql
Related articles
, multiple selections available,
Related content
How to Upgrade Security Server to Ubuntu 24.04 Using a Configuration Backup?
How to Upgrade Security Server to Ubuntu 24.04 Using a Configuration Backup?
More like this
How to Set Up a Security Server?
How to Set Up a Security Server?
More like this
Security Server Ubuntu 22.04 to 24.04 In-place Upgrade.
Security Server Ubuntu 22.04 to 24.04 In-place Upgrade.
More like this
How to Replace the Security Server Internal TLS Key and Certificate?
How to Replace the Security Server Internal TLS Key and Certificate?
More like this
Security Server Cluster Ubuntu 22.04 to 24.04 Upgrade.
Security Server Cluster Ubuntu 22.04 to 24.04 Upgrade.
More like this
How to Empty the OCSP Cache on the Security Server?
How to Empty the OCSP Cache on the Security Server?
Read with this