I wrote this script to terminate multiple suspended accounts, ideal if you have hundreds of suspended accounts you need terminated. Saves time as doing this manually using WHM would take hours, script takes usernames from list in /var/cpanel/suspended/. Be careful you dont delete accounts that have been suspended by bandwidth usage, you could enter a line in script to avoid deleting bandwidth suspended accounts:
#!/bin/sh
cd /var/cpanel/suspended/
for user in *
do
echo y | /scripts/killacct $user
done
exit



LinkBack URL
About LinkBacks
Reply With Quote





