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,
- Terminate an account through WHM/cPanel
- Terminate an account through WHM XML – API
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