Domain delete

Gives up a registration. What happens next depends on when you send it, and in most zones the name does not disappear immediately.

Request

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
  <command>
    <delete>
      <domain:delete xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
        <domain:name>example.com.ua</domain:name>
      </domain:delete>
    </delete>
    <clTRID>EXAMPLE-1-del-0001</clTRID>
  </command>
</epp>

Response

<response>
  <result code="1000"><msg>Command completed successfully</msg></result>
  <trID>…</trID>
</response>

There is no <resData>. A 1001 means the registry is still working on it and the outcome will arrive by poll.

What actually happens to the name

Deleted inside the add-grace window — the name is removed immediately and, where the zone's rules provide for it, the registration fee is credited back. The window is short and it is the zone's, not ours.

Deleted at any other time — the name enters the redemption period. It stops resolving, it is not available to anyone else, and you can bring it back with restore at the restore price. When the redemption period ends the name moves to pendingDelete and is then purged and released for general registration.

And in some zones none of that is true. There are zones here where a deleted name cannot be restored at all, and zones where — at present — a name is never actually purged and stays restorable indefinitely. The periods and the possibilities are published per zone; see Registry parameters.

So: before you delete a name on a customer's behalf, know which kind of zone it is in. "We can get it back within thirty days" is true in most of them and false in some.

What blocks a delete

  • clientDeleteProhibited — yours; lift it and send the command again.
  • serverDeleteProhibited — the registry's; you cannot lift it. In at least one zone here every name carries it by default, which means delete can never be applied there at all.
  • Subordinate hosts that are still delegating other domains — 2305. Remove or replace them first; see Host delete.

What the server refuses, in its own words

Each refusal arrives as a result code and a sentence in <result><msg>, in the shape Commands and responses shows. The sentence is translated into the language you chose at login where a translation exists, and the lang attribute says which language you are being given. Branch on the code, never on the sentence — the code is the contract, the wording is not.

CodeWhat the message says
2304Domain status prohibits delete
2400No channel for this domain

Result codes

CodeWhen
1000accepted
1001accepted, finishing at the registry — resolve from poll
2303no such domain
2304a status prohibits it
2305something still depends on it — usually a subordinate host in use

Notes

Deleting is not how you stop a name resolving. clientHold does that, reversibly, in one update. Delete is for giving the registration up.

Deleting does not always stop the money. In zones where the registry renews an unrenewed name automatically and invoices for it, the deletion has to reach the registry before that happens — which is why a name a customer is not keeping should be deleted deliberately and early, rather than left to lapse.

A delete you did not see the answer to is resolved with info. If the name reports a redemption state in <rgp:infData>, the delete applied.


On this page