A lot of stuff and things…

How to: Delete All cPanel Accounts

I can’t ask why you would want to perform this but I have run in to this occasion where a client wants to clear a server out.

DISCLAIMER This will delete all of the accounts on your server and can cause irreversible damage.

That said, on to the goods:


ls /var/cpanel/users | while read KUSER; do
      echo 'y' | /scripts/killacct ${KUSER}

Hope that helps.

Next Post

Previous Post

Leave a Reply

© 2021

Theme by Anders Norén