Delete reseller's accounts with the reseller

uwhost

Member
Jun 6, 2003
24
0
151
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
 

uwhost

Member
Jun 6, 2003
24
0
151
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
 

cPanelNick

Administrator
Staff member
Mar 9, 2015
3,488
35
158
cPanel Access Level
DataCenter Provider
uwhost said:
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
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