The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Delete reseller's accounts with the reseller

Discussion in 'General Discussion' started by uwhost, Nov 29, 2004.

  1. uwhost

    uwhost Member

    Joined:
    Jun 6, 2003
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I manage my accounts with an external script, but there is one problem; reseller accounts... It's hard to make them, because I have to make them resellers and change the limits manually, and it's even harder to delete them, because I have to manually delete all the reseller's clients. Isn't there an option to configure cpanel to delete the resold accounts together with the reseller? Or at leasta function to see resold accounts of who the reseller is't on the server anymore?

    I'm hosting a bunch of sites for free now, because I sometimes forget to delete the resold accounts manually...

    Thx,

    Ken
     
  2. uwhost

    uwhost Member

    Joined:
    Jun 6, 2003
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Is there no way to do this? :confused:
     
  3. Peoplespaces

    Peoplespaces Well-Known Member

    Joined:
    Oct 1, 2001
    Messages:
    217
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Both those options are avialble in WHM under Reseller Center
     
  4. uwhost

    uwhost Member

    Joined:
    Jun 6, 2003
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    I know I can delete all reseller accounts by typing; I know this will ... delete all this users accounts, but isn't there a way to have the reseller's accounts deleted together with his own account without having to log into WHM and doing it manually?

    Thx,
    Ken
     
  5. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    It can be done from a shell AS ROOT by using (change bob to the reseller username)

    export reseller="bob"
    export REMOTE_USER=root
    export QUERY_STRING="verify=I%20understand%20this%20will%20irrevocably%20remove all%20the%20accounts owned by%20the%20reseller%20$reseller&reseller=$reseller&resalso=1"

    /usr/local/cpanel/whostmgr/bin/whostmgr2 killreseller
     
Loading...

Share This Page