Terminate cPanel accounts using WHM or ssh
When a customer leaves your service or if you have an account you no longer use then you’re going to want to remove that account from the server to free up resources. There are a number of ways to achieve this either by using the WHM interface or by using ssh. Usually, resellers won’t have an option to remove an account using ssh and only the WHM interface is available.
Terminate cPanel accounts using WHM (Web Host Manager)
To terminate an account using WHM login to your WHM account and in the search box type the word “terminate” then click “terminate an account”
Search for the domain name or cPanel account user name you want to terminate and click “terminate” at the bottom of the page
The server will then remove the account from the server, all files for that account will be lost and you can’t undo this action.
Terminate cPanel accounts using ssh
You can use the killacct script to remove an account using ssh. This also has the advantage of adding some additional options when removing accounts. Issue the below command when logged in as root. You can add arguments to this as below. –user represents the cPanel username to terminate
/scripts/killacct --user Example: /scripts/killacct first2host
When you run the /scripts/killacct script you can specify the following additional arguments. Just add the argument to the end of the command, /scripts/killacct first2host –force
--force // Force remove the account --killdns // Remove DNS Files
How was this article?
More from cPanel
Free SSL Certificates from places like cPanel or Let's Encrypt are great. When Let's Encrypt first introduces free SSL Certificates …
SWAP is a memory type that Linux NVMe VPS Servers use to process requests. Memory will be held in SWAP …
The Error: last request failed: [AUTH] Authentication failed error can be caused by a range of things. It could be …