In certain circumstances, you will be required to remove a cPanel account from your server. There are unique instance which may arise in some cases, and it would be ideal to use the command line to remove the cPanel account.
To remove a cPanel account using WHMAPI1;
whmapi1 removeacct user=username
For more information about API, use this direct link: