Contact Delete

This command follows standard EPP Contact mapping, RFC-5733, with no extensions.

Note that the contact object can only be deleted if it is not linked with any domain name as a contact person. Also contact objects, linked with registrar account as hostmasters or registrar’s primary person cannot be deleted (please, contact registrars@nic.lv to request assigning or removal of a contact person from the list of hostmasters of the registrar account)

Client request

Request takes a single contact:id element with contact handle which is to be removed.

Example:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd">
  <command>
    <delete>
      <contact:delete
       xmlns:contact="urn:ietf:params:xml:ns:contact-1.0"
       xsi:schemaLocation="urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd">
         <contact:id>oldhdl-00023</contact:id>
      </contact:delete>
    </delete>
    <clTRID>4UJkCNgkAyBV1udOeP7q</clTRID>
  </command>
</epp>

Server response

On success, a response code of 1000 ("Command completed successfully") would be returned.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd">

  <response>
    <result code="1000">
      <msg>Command completed successfully</msg>
    </result>
    <trID>
      <clTRID>4UJkCNgkAyBV1udOeP7q</clTRID>
      <svTRID>LVNIC-20110830-a49491f0523af691e94f7aa4098cc509-7</svTRID>
    </trID>
  </response>
</epp>

If a contact object is still linked with other registry objects, a response code of 2304 ("Object status prohibits operation") and a descriptive message would be returned instead.