cPanel XMLAPI - terminatereseller


DESCRIPTION

This function will terminate a reseller's main account and all accounts owned by the reseller's user.


VARIABLES

INPUT

reseller (string)
Name of the reseller to terminate.

terminatereseller (boolean)
Whether or not to terminate the reseller's main account (1 = Yes, 0 = No)

verify
Verification message. Replace 'RESELLERNAME' with the name of the reseller: I%20understand%20this%20will%20irrevocably%20remove%20all%20the%20accounts%20owned%20by%20the%20reseller%20RESELLERNAME

OUTPUT

terminatereseller
Reseller termination container.

result
Results of the termination.

accts
Account termination container.

name
Name of the account being terminated.

rawout
Raw output of the account termination process.

status
Status of the operation (1 = success, 0 = failure)

statusmsg
Information about the status of the operation.


EXAMPLES

Calling this URL in WebHost Manager: /xml-api/terminatereseller?reseller=bob&terminatereseller=1&verify=I%20understand%20this%20will%20irrevocably%20remove%20all%20the%20accounts%20owned%20by%20the%20reseller%20bob

will produce something similar to:

<terminatereseller>

    <result>
    <accts>

<name>account1</name>

    <rawout>

Collecting Domain Name and IP...User: account1 Domain: account1.tld ...Done Killing all processes owned by user......Done Cleaning passwd,shadow,group......Done Removing User from Group..........Done Removing Web Logs......Done Removing Crontab......Done Removing Virtual Hosts...Removed Extra Entries from httpd.conf ...Done Removing System User......Done Removing Group......Done Removing DNS Entries...account1.tld -> deleted from servername. ...Done Removing Email Setup...Removing /etc/valiases/account1.tld ...Done Removing mailman lists......Done Removing MySQL databases and users......Done Removing remotedomains,secondarymx,localdomains entries......Done Adding ip back to ipaddrpool...System has 0 free ips. ...Done Removing user's cPanel Databases & Updating......Done Reloading Services......Done

Sending Contacts......Done Updating internal databases...Updating ftp passwords for all users Ftp password files updated. Ftp vhost passwords synced ...Done Running post removal scripts......Done <br /><b>Account Removal Complete!!!</b><br />

</rawout>

<status>1</status>

<statusmsg>account1 account removed</statusmsg>

</accts>

    <accts>

<name>bob</name>

    <rawout>

Collecting Domain Name and IP...User: bob Domain: bob.tld ...Done Killing all processes owned by user......Done Cleaning passwd,shadow,group......Done Removing User from Group..........Done Removing Web Logs......Done Removing Crontab......Done Removing Virtual Hosts...Removed Extra Entries from httpd.conf ...Done Removing System User......Done Removing Group......Done Removing DNS Entries......bob.tld -> deleted from servername. ...Done Unable to unlink /var/named/bob.tld.db, file does not exist.bob.tld -> deleted from servername. ...Done Removing Email Setup...Removing /etc/valiases/bob.tld ...Done Removing mailman lists......Done Removing MySQL databases and users...Database ``bob_db1'' dropped Database ``bob'' dropped ...Done Removing remotedomains,secondarymx,localdomains entries......Done Adding ip back to ipaddrpool...System has 0 free ips. ...Done Removing user's cPanel Databases & Updating......Done Reloading Services......Done

Sending Contacts......Done Updating internal databases...Updating ftp passwords for all users Ftp password files updated. Ftp vhost passwords synced ...Done Running post removal scripts......Done <br /><b>Account Removal Complete!!!</b><br />

</rawout>

<status>1</status>

<statusmsg>bob account removed</statusmsg>

</accts>

<privdelete>1</privdelete>

<status>1</status>

<statusmsg>Account Terminations Complete</statusmsg>

</result>

</terminatereseller>


COPYRIGHT

Copyright 2007 cPanel Inc.