Contact Delete
==============
This command follows standard EPP Contact mapping, `RFC-5733`_, with no extensions.
Note that the contact object can only be deleted if it is not linked with any domain name as a contact person.
Also contact objects, linked with registrar account as hostmasters or :term:`registrar's primary person` cannot
be deleted (please, contact registrars@nic.lv to request assigning or removal of a contact person from the list
of hostmasters of the registrar account)
Client request
--------------
Request takes a single ``contact:id`` element with contact handle which is to be removed.
Example:
.. code-block :: xml
oldhdl-00023
4UJkCNgkAyBV1udOeP7q
Server response
---------------
On success, a response code of ``1000`` (``"Command completed successfully"``) would be returned.
.. code-block :: xml
Command completed successfully
4UJkCNgkAyBV1udOeP7q
LVNIC-20110830-a49491f0523af691e94f7aa4098cc509-7
If a contact object is still linked with other registry objects, a response code of ``2304`` (``"Object status prohibits operation"``)
and a descriptive message would be returned instead.
.. *** include external reference links: ***
.. include:: /ref_links.rst