Delete contact[Link]

Purpose

An EPP contact <delete> command provides a transform operation that allows a client to delete an existing contact object.

The delete contact command is composed according to the standard EPP syntax. Some components need further explanation:

  • <contact:id> is required. Contains the contact you want to delete.

Please refer to the examples to see a complete request.

Examples[Link]

Deleting the contact c24:

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

After a successful operation, the EPP server will respond with:

<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:dnsbe="http://www.dns.be/xml/epp/dnsbe-1.0">
  <response>
    <result code="1000">
      <msg>Command completed successfully</msg>
    </result>
    <extension>
      <dnsbe:ext>
        <dnsbe:result>
          <dnsbe:msg>Contact c24 deleted</dnsbe:msg>
        </dnsbe:result>
      </dnsbe:ext>
    </extension>
    <trID>
    <clTRID>clientref-00007</clTRID>
    <svTRID>dnsbe-1541</svTRID>
  </trID>
</response>
</epp>

When you try to delete a contact that does not exist, the EPP server will respond with:

<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:contact="urn:ietf:params:xml:ns:contact-1.0">
  <response>
    <result code="2303">
      <msg>Object does not exist</msg>
      <value>
        <contact:id>c24</contact:id>
      </value>
    </result>
    <trID>
      <clTRID>clientref-00008</clTRID>
      <svTRID>dnsbe-106</svTRID>
    </trID>
  </response>
</epp>

When you try to delete a contact that is still linked to a domain name, the EPP server will respond with:

<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:dnsbe="http://www.dns.be/xml/epp/dnsbe-1.0">
  <response>
    <result code="2305">
      <msg>Object association prohibits operation</msg>
    </result>
    <extension>
      <dnsbe:ext>
        <dnsbe:result>
          <dnsbe:msg>Contact [c16] still linked to 1 domain(s)</dnsbe:msg>
        </dnsbe:result>
      </dnsbe:ext>
    </extension>
    <trID>
      <clTRID>clientref-00009</clTRID>
      <svTRID>dnsbe-107</svTRID>
    </trID>
  </response>
</epp>