Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jan 2002
    Posts
    5

    Thumbs up Script to terminate all suspended accounts

    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
    BargainHost 'Affordable UK Hosting'
    bargainhost.co.uk

  2. #2
    Member
    Join Date
    Apr 2007
    Posts
    11

    Default Question

    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 Devilsun@mail.ru or admin@devilsun.org.ua

    Will be thankful!!!

Similar Threads & Tags
Similar threads

  1. Script to delete suspended accounts?
    By cwalke32477 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-07-2010, 04:57 PM
  2. Suspended Account list - Terminate button
    By oulzac in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-04-2010, 03:56 PM
  3. Script terminate an account
    By thaleslqa in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-21-2009, 06:06 PM
  4. Suspended Accounts Dont go on suspended list
    By matty005 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 12-13-2006, 10:35 PM
  5. Mass Terminate Script
    By clanosiris in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-30-2005, 12:02 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube