Delete domain[Link]

Purpose

to delete a domain name from the .be database.

A deletion of a .be domain can be done with a deletedate. This is the date on which you want the name to be deleted (automatically). If you don’t specify a deletedate, or the deletedate is in the past, the name will be deleted on the day of the command. For more information check the topic: Delete, quarantine and reactivate

In case the domain name is under Domain Guard, it won’t be possible to delete the domain name. You can see if a domain name is under Domain Guard via an info-domain v1 and v2 (when the domain name belongs to you as a registrar). If a delete is initiated on such a domain name, a hitpoint will be attributed. The error message you will receive in case of Domain Guard is:

  • 2304 (Object status prohibits operation)

  • Domain [%s] has invalid status (serverDeleteProhibited)

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

  • <domain:name> is required. Is the domain name to delete, with or without a trailing .be.

  • <deleteDate> is optional. Is the date when the domain should be deleted. Please be aware that dates in EPP are always in UTC.

  • <overwriteDeleteDate> is optional. It is possible to reschedule a deletion without first executing an undo-delete for that domain name. The <delete-domain> command works regardless of whether the domain name was already scheduled for deletion. The new time stamp will overwrite the previously specified time stamp. In this case, this flag has to be specified.

Please refer to the examples to see a complete request.

Examples[Link]

A correct delete command:

<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
 <command>
  <delete>
   <domain:delete>
    <domain:name>dom-4-1182438123611</domain:name>
   </domain:delete>
  </delete>
   <extension>
     <dnsbe:ext
         xmlns:dnsbe="http://www.dns.be/xml/epp/dnsbe-1.0">
       <dnsbe:delete>
         <dnsbe:domain>
           <dnsbe:deleteDate>2010-10-10T10:10:10.0Z</dnsbe:deleteDate>
         </dnsbe:domain>
       </dnsbe:delete>
     </dnsbe:ext>
   </extension>
  <clTRID>delete-domain-00</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">
  <response>
    <result code="1000">
      <msg>Command completed successfully</msg>
    </result>
    <trID>
      <clTRID>delete-domain-00</clTRID>
      <svTRID>dnsbe-345114</svTRID>
    </trID>
  </response>
</epp>

It is also possible to send the <delete> command without a <deleteDate> element.

<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
 <command>
  <delete>
   <domain:delete>
    <domain:name>domain-agent0-inuse-3</domain:name>
   </domain:delete>
  </delete>
  <clTRID>delete-domain-00</clTRID>
 </command>
</epp>

In case you want to change the deletedate:

<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
 <command>
  <delete>
   <domain:delete>
    <domain:name>dom-4-1182438123611</domain:name>
   </domain:delete>
  </delete>
   <extension>
     <dnsbe:ext
         xmlns:dnsbe="http://www.dns.be/xml/epp/dnsbe-1.0">
       <dnsbe:delete>
         <dnsbe:domain>
           <dnsbe:deleteDate>2010-10-10T10:10:10.0Z</dnsbe:deleteDate>
          <dnsbe:overwriteDeleteDate>true</dnsbe:overwriteDeleteDate>
         </dnsbe:domain>
       </dnsbe:delete>
     </dnsbe:ext>
   </extension>
  <clTRID>delete-domain-00</clTRID>
 </command>
</epp>

The response always looks the same for a correct command.