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
When you run the
/scripts/killacct script, you can specify the following options:
- Example: /scripts/killacct first2host –force
- Example: /scripts/killacct first2host –killdns
How was this article?