How to Manually Remove Central Server Installation?

Central Server installation can be removed manually by removing X-Road packages and configuration directories.

Step-by-step guide

Central Server installation can be removed manually by executing the shell script below:

remove.sh
#!/bin/sh
   
set -x
   
sudo apt-get purge xroad-base
sudo apt-get autoremove
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 apt-get purge nginx
sudo -u postgres dropdb centerui_production
sudo -u postgres psql -c "drop user centerui"
sudo apt-get purge postgresql