Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2002
    Location
    London/Edinburgh
    Posts
    1,131

    Question Mass CPanel Account Delete Script?

    Hello.

    Does anyone have a script that will delete a list (domain names) of accounts from a cpanel server?

    We are deleting all accounts of some of our servers at work and there are like 200 to be deleted on one box....

    Anyone have a script to do it?
    Europhase UK Limited - XEN/OpenVZ UK/US Virtual Private Servers | R1Soft Backups for Web Hosts
    Custom R1Soft Backups | UK/US Web Hosting | UK/US Virtual Private Servers
    99.9% Uptime SLA | Non Overloaded Service | Guaranteed Ram / Resources
    Company: SC345142 VAT: GB-947754180 Tel: 0870 4710 895

  2. #2
    Join Date
    Jan 2003
    Posts
    259
    I don't think it would be too hard to do something like that, you can even just use the terminate account script (/scripts/killacct). Perhaps some modifications to this file or a shell script to remove everyone.

    If your deleting all accounts, you could always have a fresh install of the OS done..
    "Television has brought back murder into the home -- where it belongs."
    ♣ Alfred Hitchcock ♣

  3. #3
    Join Date
    Sep 2002
    Location
    London/Edinburgh
    Posts
    1,131
    I cannot reinstall the OS. We are only deleting some accounts. (some = 100-250 area). These are small 10MB accounts HTML only. So no problem having lots of them on a box, heh.
    Europhase UK Limited - XEN/OpenVZ UK/US Virtual Private Servers | R1Soft Backups for Web Hosts
    Custom R1Soft Backups | UK/US Web Hosting | UK/US Virtual Private Servers
    99.9% Uptime SLA | Non Overloaded Service | Guaranteed Ram / Resources
    Company: SC345142 VAT: GB-947754180 Tel: 0870 4710 895

  4. #4
    Join Date
    Apr 2003
    Location
    New York City, NY
    Posts
    3
    This would actually be a nice feature to have in WHM from Nick. Maybe someone should suggest it to him?

    Jonathan

  5. #5
    I'd recommend manually terminating them. If you mass-terminate 100+ accounts, you will end up with corrupted configuration files.
    Marc Wyss - marc@mchost.com
    MCHost Inc - Experts in Private Label Reseller Plans
    http://www.mchost.com

  6. #6
    Join Date
    Sep 2000
    Posts
    429
    a simple shell script could delete all the accounts on a server.


    for i in $(ls /var/cpanel/users); do /scripts/killacct $i; done

    that would delete all the users in /var/cpanel/users
    Last edited by JonnyQuags; 04-26-2003 at 11:35 PM.

  7. #7
    Join Date
    Sep 2002
    Location
    London/Edinburgh
    Posts
    1,131
    i dont want to delete all accounts however, just some of them.
    Europhase UK Limited - XEN/OpenVZ UK/US Virtual Private Servers | R1Soft Backups for Web Hosts
    Custom R1Soft Backups | UK/US Web Hosting | UK/US Virtual Private Servers
    99.9% Uptime SLA | Non Overloaded Service | Guaranteed Ram / Resources
    Company: SC345142 VAT: GB-947754180 Tel: 0870 4710 895

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •