How to Uninstall Hostsecure

Warning: Uninstalling Hostsecure is permanent and cannot be undone. All data on the server managed by Hostsecure will be destroyed.

The Hostsecure uninstaller will completely remove Hostsecure and all services it installed from your server. Before proceeding, make sure you have backed up anything you need.

What will be removed

Websites & Web Services
  • All websites and web applications
  • Apache2 web server
  • PHP and all PHP modules
  • SSL certificates (Let's Encrypt / Certbot)
  • Node.js, NVM, and npm
Databases
  • MariaDB and all databases
  • PostgreSQL 17 and all databases
  • SQLite3 and the Hostsecure database
  • phpMyAdmin, phpPgAdmin, pgAdmin4, phpLiteAdmin
Email
  • Exim4 mail transfer agent
  • Dovecot IMAP/POP3 server
  • Roundcube webmail
  • All email accounts and messages
FTP
  • vsftpd FTP server
  • All FTP user accounts and files
DNS
  • BIND9 DNS server
  • All DNS zones and records
  • Glue records at the domain registrar
Security & Configuration
  • UFW firewall rules added by Hostsecure
  • Sudoers rules for web server access
  • Hostsecure configuration files
  • Cron jobs (licence check)
  • System users created by Hostsecure (admin, ftp_user)
Licence
  • Your licence will be revoked
  • A new licence can be registered for the same IP after uninstall

What will NOT be removed

  • SSH access (port 22 is left open to prevent lockout)
  • UFW firewall itself (still active, can be disabled manually)
  • Python3 (system package)
  • System packages not installed by Hostsecure
  • The server hostname (not reverted)

How to uninstall

Connect to your server via SSH as root and run the following command:

curl -sSL https://hostsecure.org/uninstall.sh | sudo bash

You will be asked to confirm twice before the uninstall begins. A detailed log of all actions taken will be saved to /Hostsecure-uninstall.log on your server.

← Back to Hostsecure.org