Removing a domainless WHM reseller account revokes that person’s server management login. This guide explains how an administrator can remove the account through cPanel’s supported API.
Before you start
Confirm the exact username and that it is the domainless administrative account you intend to remove. Check whether it owns customer accounts, scheduled tasks or other resources, and transfer required ownership through WHM before proceeding.
Keep another working administrator account and a recovery route. Do not use this command to remove a normal hosting account unless you have separately reviewed that account’s termination effects.
Remove the account
-
Connect to the server through SSH as root.
-
Run the following with the confirmed username in place of
staffwhm:whmapi1 removeacct username=staffwhm -
Check the API result for success or errors.
-
Verify that the removed user can no longer sign in to WHM.
-
Confirm that transferred customer accounts and any other retained resources are still managed by the correct owner.
Review separately issued API tokens and other credentials as part of the person’s access removal. Do not leave an independent credential active simply because the WHM account has been removed.
For creating this account type, see how to create a WHM reseller account without an associated domain.