In any situation, we indeed to terminate cPanel account due to many unexpected or expected reason. In such a case, we can terminate cPanel account by two ways. They are,

  1. Terminate an account through WHM/cPanel
  2. Terminate an account through WHM XML – API
Note
Before terminating the account from the server generate and download the account full backup. Once you delete the account you can’t retrieve that until or otherwise, you restore the same user account’s full backup.

 

Terminate an account through WHM/cPanel:

In this method, we can terminate a cPanel account from the server by the following steps.

WHM > Account functions > Terminate an Account/Terminate Accounts

We can also terminate/remove a cPanel account through the SSH command. The below command will perform the stated task.

scripts/removeacct username 
         or 
scripts/killacct username

Once you terminate or deleted your account all the particular account owned properties like Email accounts, Databases, FTP accounts, DNS records, etc.. will be deleted permanently.
This terminate operation is irreversible i.e Once you delete the account you can’t retrieve that until or otherwise, you restore the same user account.

Terminate an account through WHM XML – API:

Run the below URL on your favourite browser, replace the cPanel session key and username with appropriate details.

https://hostname.example.com:2087/cpsess##########/xml-api/removeacct?user=yourdomainusername

Categorized in: