Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Script to terminate all suspended accounts

Discussion in 'General Discussion' started by bargainhost, Mar 28, 2005.

  1. bargainhost

    bargainhost Member

    Jan 6, 2002
    Likes Received:
    Trophy Points:
    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:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. DevilSun

    DevilSun Member

    Apr 26, 2007
    Likes Received:
    Trophy Points:

    I have one question.
    For example i have for about 150 accounts that were suspended for different reasons (for non payment, cancellation etc). Among them exists resselers account.

    How to terminate accounts (non-resellers and subresellers accounts) that were suspended for "cancellation" for about 60 days ago.
    Does anybody have similar script?

    Also could the holder of such script share it with me? :)

    My email address is or

    Will be thankful!!!

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice