How to Terminate/Delete/Remove a cPanel account

How to Terminate/Delete/Remove a cPanel account


 
You can easily Remove a cPanel account if you have server root login details. Reseller customers can remove the cPanel users under the reseller account using the login details provided by the webhosting company.
Shared hosting customers cannot remove their cPanel account so they should contact the hosting company to terminate the account. There are two ways to delete the cPanel account :

1. You can delete the cPanel account through WHM frontend
2. You can delete the cPanel account from the Server backend using cPanel script (command)

IMPORTANT : The below steps will permanently delete the cPanel account from the server so please take a backup of the cPanel account, if the data is required. All email accounts, FTP accounts, main domain, addon domains, subdomain etc under the cPanel account will be removed permanently from the server.
 

Steps to delete cPanel account from WHM

 
1. Log into WHM (Webhost Manager)

2. Search for “Terminate an Account” in WHM search bar

3. Click on “Terminate Accounts” under “Multi Account Functions”

“Terminate an Account” option under “Account Functions” will be removed in future version of cPanel. On old cPanel servers the option was “Terminate an Account”. This feature and its functionality have been merged with “Terminate Accounts.”

Home » Multi Account Functions » Terminate Accounts
 
terminate cpanel account
 
4. Tick the domain you wish to delete and click on remove like shown in the picture.
 
Delete cPanel account
 
You can either keep the DNS zone and delete it. If you tick the box “Keep DNS Zone” it will keep the DNS zone and delete the account. DNS zone will be deleted if the option is not ticked.

The page will be redirected if you click on “Terminate Multiple Accounts” and “Terminate an Account” in WHM because these features are now included in “Terminate Accounts” option.
 

How to remove a cPanel account from server backend Easyapache 3 Server

 
on easyapache 3 servers killacct cPanel script can be used to terminate the cPanel account.

1. Log into server via SSH as ‘root’

2. Run the cPanel script “/scripts/killacct [cPanelusername]” to terminate the cPanel account

Command :

/scripts/killacct [cPanelusername]

OR

/usr/local/cpanel/scripts/killacct [cPanelusername]

‘cPanelusername’ in the above command should be replaced with actual cPanel username.

Example : /scripts/killacct testuser

The above command will permanently remove the cPanel account “testuser” from the server.

/scripts/killacct [cPanelusername] --force

--force will remove the account without asking for any confirmation.
 

How to remove a cPanel account from server backend on Easyapache 4 Server

 
The above cPanel script will work only on easyapache 3 server. There are many changes in Easyapache 4 servers so you must use the below cPanel script to remove the cPanel account.

1. Log into server via SSH as ‘root’

2. Run the command “/scripts/removeacct [account]” to remove a cPanel account on easyapache 4 server.

Command : /scripts/removeacct [cPanelusername]

OR

/usr/local/cpanel/scripts/removeacct [cPanelusername]

3. Enter ‘y’ to delete the account and DNS zone.

Example :

I ran the below command to terminate the cPanel account “martin”. It will ask for confirmation before deleting the cPanel account. Enter ‘y’ and press enter to confirm and delete the account.

[root@server /]# /scripts/removeacct martin
Are you sure you want to remove the account “martin”, and DNS zone files for the user? [y/N]? y

martin account removed

Use “--force” option if do not want to see a confirmation message while deleting the account

/scripts/removeacct --force [cpanelusername]

Use “--keepdns” option if you want to keep the DNS zone and delete the account.

/scripts/removeacct --keepdns [cpanelusername]