Introduction
cPanel provides command-line utilities that allow administrators to manage hosting accounts directly from SSH. The removeacct script can be used to terminate a cPanel account quickly from the command line.
Prerequisites
Before proceeding, ensure:
- Root SSH access to the server
- The cPanel username of the account to be removed
- Backup of the account data if required
Implementation
Step 1: Login via SSH
Access the server through SSH as the root user.
Step 2: Run the Account Removal Command
Execute the following command:
/usr/local/cpanel/scripts/removeacct username
Replace:
username
with the actual cPanel account username.
Example
/usr/local/cpanel/scripts/removeacct exampleuser
Note
Terminating a cPanel account permanently removes:
- Website files
- Email accounts
- Databases
- DNS entries (unless configured otherwise)
Always ensure a backup is available before proceeding.
Conclusion
Using the removeacct script in cPanel allows administrators to quickly terminate hosting accounts directly through SSH with minimal effort.