This post is updated because cPanel changed the script to remove an account via command line. This is simple to manage cPanel via server CLI (command line interface). Here we discuss about the command to terminate an account from CLI. In older versions of cPanel, the command was “killacct.” The original location for this script is:

/scripts/killacct
Or
/usr/local/cpanel/scripts/killacct

Syntax

/scripts/killacct username

Example

# /scripts/killacct crybit
Are you sure you want to remove the account "crybit" [y/N]? y
Running pre removal script (/usr/local/cpanel/scripts/prekillacct)......Done
Collecting Domain Name and IP......Done
......................
......................
......................
Updating ftp passwords for crybit
Purging ftp user crybit
Ftp password files updated.
Ftp vhost passwords synced
crybit account removed

Later cPanel changed the script from killacct to removeacct. In latest cPanel server, you can terminate an account using the following command:

/scripts/removeacct
Or
/usr/local/cpanel/scripts/removeacct

Syntax

/scripts/removeacct username

That’s it!
Please let me know if you have any questions regarding this.

Leave a Reply

Your email address will not be published. Required fields are marked *