- Home
- API reference
- API documentation (JSON/XML)
- Tasks
- Contact tasks
Contact delete
Function
The ContactDelete task deletes domain contacts. Several domain contacts can be deleted with one bulk request.
Domain contacts can only be deleted if they are no longer connected to a domain. Otherwise, an error message is displayed.
Description
Route: DELETE /contact/{id}
There is no need to send a body.
{
}{
"stid": "20190628-app3-dev-11608",
"status": {
"code": "S0303",
"text": "Domain contact was deleted successfully. ",
"type": "SUCCESS"
},
"object": {
"type": "Contact",
"value": "23151438"
}
}
Task Code: 0303
Uses Contact object
<request>
<auth>
<user>customer</user>
<password>password</password>
<context>4</context>
</auth>
<task>
<code>0303</code>
<handle>
<id>23151438</id>
</handle>
<reply_to>customer@example.com</reply_to>
</task>
</request><response>
<result>
<status>
<code>S0303</code>
<text>Domain contact was deleted successfully.</text>
<type>notify</type>
</status>
</result>
</response>