Skip to content

Suspend versus terminate — when to use suspendacct, when to use removeacct

Suspension and termination look similar from the WHM interface but have very different downstream effects on backups, DNS, mail, and customer recovery time.

The non-paying customer ticket lands in the queue and somebody fires off whmapi1 removeacct user=acme because the customer was thirty days past due. Three days later the customer pays, asks for their site back, and the only copy is in the nightly Borg archive — restoring it means an hour of work and a difficult conversation. Suspension exists precisely for this scenario, and the gap between knowing it and using it is where most cPanel termination accidents happen.

What’s happening

suspendacct locks the account out — cPanel login is denied, sites return a 403 with the suspension page, mail bounces, FTP and SSH refuse connections — but every byte stays on disk. The account row stays in /var/cpanel/users/, the home directory is intact, MySQL databases keep running, and reversal is unsuspendacct plus a propagation wait. removeacct is destructive: home directory deleted, MySQL databases dropped, mail queue purged, DNS zones removed, account row vanished. Recovery requires a restore from backup, and if the backup window already rolled past the account, recovery means a customer-facing apology.

How to verify

Before deciding, check both the customer’s state and what a removal would actually touch:

whmapi1 accountsummary user=acme
whmapi1 list_dbs user=acme
du -sh /home/acme
ls /var/cpanel/users/acme
tail -f /usr/local/cpanel/logs/access_log | grep -E '(suspend|remove)acct'

The disk footprint tells you the magnitude of what termination throws away. The database list tells you whether there are multi-account dependencies — shared databases across resellers, or external apps pointing at this user. If either is non-trivial, suspension is the only safe first step.

The fix

  1. Default to suspendacct for everything billing-related. Set a calendar reminder for 30 days; only escalate to termination after the customer has been suspended and unreachable for that window.
  2. For abuse cases, suspend first with a clear reason: whmapi1 suspendacct user=acme reason="2026-05-18 abuse review — see ticket 4421". The reason shows on the suspension page and in /var/cpanel/suspended/acme.
  3. Before removeacct, run a final pkgacct user=acme and copy the archive off-server. Even when the customer has been written off, an archive costs little and saves you when the cancellation gets disputed.
  4. Never removeacct from a script that processes a customer list without a manual approval gate. The single most common cause of accidental termination is a script run with the wrong CSV.

When termination is the right call but the data needs to outlive the account, Stack Harbor’s environment management approach pairs WHM lifecycle operations with archive policies that satisfy retention obligations.