Removing Plesk from FreeBSD Systems

To remove Plesk from your server, follow these steps:

  1. Log in to Plesk server as root.
  2. Run the command: /usr/local/etc/rc.d/psa.sh stop
  3. Run the command: pkg_delete `pkg_info | grep psa | awk '{print $1}' | xargs -n100`
  4. Run the command: rm -rf /usr/local/psa
  5. Run the command: rm -rf /usr/local/etc/psa
  6. Run the command: rm -rf /usr/ports/swsoft
  7. Run the command: rm -rf /etc/psaecho 'DROP DATABASE psa' | mysql -uadmin -p<password>
  8. Delete all references to DNS zones from the file /var/named/etc/namedb/named.conf, remove zone files from /var/named/etc/namedb/master/, and modify the file /etc/rc.conf appropriately, then restart the bind service.
  9. Run the command: rm -rf /etc/psa