Contact delete
Removes a contact. Only one that nothing references.
Request
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command>
<delete>
<contact:delete xmlns:contact="urn:ietf:params:xml:ns:contact-1.0">
<contact:id>EXAMPLE-1-C1</contact:id>
</contact:delete>
</delete>
<clTRID>EXAMPLE-1-cdel-0001</clTRID>
</command>
</epp>
linked stops it
A contact used by any domain, in any role, carries linked and cannot be deleted: the answer is 2305. Re-point or delete those domains first.
There is no forced form here, and that is deliberate — a domain cannot exist without a registrant, so a "detach from everything" delete would have to invent one.
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.
| Code | What the message says |
|---|---|
2304 | Contact status prohibits delete |
2305 | Contact is linked to a domain |
Result codes
| Code | When |
|---|---|
1000 | deleted |
2303 | no such contact |
2304 | a status prohibits it — clientDeleteProhibited is yours to lift |
2305 | still referenced by at least one domain |
Notes
A contact you can no longer delete may be in use by another registrar's domain. linked counts every domain, including another registrar's after a transfer. If it is no longer yours to manage, leave it.
Deleting is rarely necessary. An unused contact costs nothing and harms nothing, so keeping it is often better than deleting an object whose id a customer may need again. The one case where you really should delete is data protection: someone has asked for their data to be removed, and then the contact does get deleted.
On this page