1. If you are needing to wipe a cPanel server clean here is a quick and neat bash script to do just that.

      WARNING THIS WILL DELETE ALL ACCOUNTS ON YOUR SERVER WITH NO CONFIRMATION…

      #!/bin/bash
      IFS="$"
      
      ls /var/cpanel/users | while read KUSER; do
        echo 'y' | /scripts/killacct ${KUSER}
      done
      
      Thanks to kujoez at cpanel.net for the script.