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() |
| Argument | Description |
| domain | The 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 Key | Description |
| error |
An array of error messages which may include:
| Code | Description |
| 300 | Insufficient credentials for edit |
| 305 | Invalid password |
| 321 | Domain not found |
| 500 | Fatal error in query |
| 510 | Fatal error in query |
|
Examples
In the example below the xmlrpcdemo417487.tc domain has these
contacts:
| Registrant | adams364d |
| Admin. contact | adams516c |
| Billing contact | adams555f |
| Technical contact | adams530y |
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>
|