Host delete

Removes a name server object. A host that any domain still delegates to cannot be deleted — unless you ask for the forced form, which detaches it from those domains first.

Request

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

A host carrying linked — one that at least one domain uses as a name server — answers 2305, object association prohibits operation. Detach it from those domains with domain update first.

Forced delete

To remove the host and detach it from every domain that uses it, in one command, add our own extension:

<command>
  <delete>
    <host:delete xmlns:host="urn:ietf:params:xml:ns:host-1.0">
      <host:name>ns1.example.com.ua</host:name>
    </host:delete>
  </delete>
  <extension>
    <nspc:delete xmlns:nspc="http://namespace.com.ua/epp/registry-1.0">
      <nspc:deleteNS confirm="yes"/>
    </nspc:delete>
  </extension>
  <clTRID>EXAMPLE-1-hdel-0002</clTRID>
</command>

confirm="yes" is required and is not a formality: this is a command that changes the delegation of domains you did not name in it.

Know what it does before you send it. Every domain that used this host loses a name server. A domain left with fewer than its zone's minimum becomes inactive — it stops resolving. That is the intended behaviour and it is not reversible by re-creating the host: you would have to re-delegate each domain.

The forced delete is for retiring a name server you control, after you have moved the domains that matter. It is not a shortcut for "I am not sure what uses this".

What it will not do

A forced delete does not override a lock. If one of the domains using the host is under a registry update-prohibition, the command is refused rather than quietly repointing a frozen domain's DNS.

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
2304A domain delegated to this host is under an update lock
2304Host status prohibits delete
2305Host is in use as a nameserver
2305Host is in use as a nameserver by another registrar

Result codes

CodeWhen
1000deleted
2303no such host
2304a status prohibits it, or a domain using it is locked
2305the host is still in use and you did not ask for the forced form

Notes

2305 names the problem but not the domains. The host is linked by at least one domain, which may belong to another registrar. If it is not yours to retire, leave it: an external host shared by many registrars is normal and deleting it is nobody's job.


On this page