[AdamsNames]

Home
Register
Payment
Edit
Whois
Clients
Bulk
Forms

domdel($domain, $auth) : Domain deletion

Assuming that you have the relevant authorization data, deleting a domain is easy. These data match those needed for domedit.

Arguments to domdel()
ArgumentDescription
domainThe domain name
credentials
Key Description
contact_id Identifier of editor e.g. edito673d
role Relationship to domain of editor (org, admin, bill, or tech)
password Editor's password
Note: either contact_id or role should be supplied, but not both
Hash returned by domdel()
Hash KeyDescription
error An array of error messages which may include:
CodeDescription
300Insufficient credentials for edit
305Invalid password
321Domain not found
500Fatal error in query
510Fatal error in query

Examples

In the example below the xmlrpcdemo417487.tc domain has these contacts:
Registrantadams364d
Admin. contactadams516c
Billing contactadams555f
Technical contactadams530y

Request

domdel('xmlrpcdemo417487.tc', 
       { 'contact_id' => 'adams364d', 'password' => 'abcdef650643' })
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
  <methodName>domdel</methodName>
  <params>
    <param>
      <value><string>xmlrpcdemo417487.tc</string></value>
    </param>
    <param>
      <value>
        <struct>
          <member>
            <name>contact_id</name>
            <value><string>adams364d</string></value>
          </member>
          <member>
            <name>password</name>
            <value><string>abcdef650643</string></value>
          </member>
        </struct>
      </value>
    </param>
  </params>
</methodCall>

Return

{
  'error' => []
}
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
  <params>
    <param>
      <value>
        <struct>
          <member>
            <name>error</name>
            <value>
              <array><data/></array>
            </value>
          </member>
        </struct>
      </value>
    </param>
  </params>
</methodResponse>

AdamsNames Limited is registered as a Company in England and Wales.
Registration Number: 3714632, VAT Registration Number: GB 731 9129 38.
Registered Office: Reg'd Office: 9 Quy Court, Colliers Lane, Stow-cum-Quy, Cambridge, CB25 9AU, UK
The Webmaster
URL: http://www.adamsnames.com//api/xmlrpc-doc/domdel.html
Last modified: Thu Apr 29 13:05:01 2004