---
title: "Domain delete"
url: "https://help.internetx.com/en/api/epp-domain-delete/"
lang: "en"
section: "API reference — EPP API"
breadcrumb: "API reference > Domain"
updated: "2023-09-26"
---

# Domain delete

## Description

Deletes the given domain at the registry. Domain deletion requests are carried out with a time delay and therefore you will always receive "command completed; action pending", as well as the **deletion** date in the [domain extensions](/en/api/epp-domain-delete/) as a response.

Note

-   To delete a domain on a particular date use the [deletion domain extension](/en/api/epp-domain-delete/).
-   The deletion date for a running domain deletion request (pendingDelete) can be inquired with the [domain info](/en/api/epp-domain-delete/) command and is returned within the [deletion domain extension](/en/api/epp-domain-delete/).

If a domain deletion is to take place shortly before the domain expiration date (2 days), it will be deleted on the domain expire date instead.

## XML example

**Request without defined deletion date**

```
<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</domain:name>
            </domain:delete>
        </delete>
        <clTRID>ABC-12345</clTRID>
    </command>
</epp>
```

**Request with defined deletion date**

```
<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</domain:name>
            </domain:delete>
        </delete>
 		<extension>
            <domainrobot:domain xmlns:domainrobot="urn:org:domainrobot:ns:ext-1.0">
                <domainrobot:deletion>2017-05-22T12:47:12.000Z</domainrobot:deletion>
            </domainrobot:domain>
        </extension>
		<clTRID>ABC-12345</clTRID>
    </command>
</epp>
```

```
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
    <response>
        <result code="1001">
            <msg lang="en">Command completed successfully; action pending</msg>
        </result>
        <extension>
            <domainrobot:domain xmlns:domainrobot="urn:org:domainrobot:ns:ext-1.0">
                <domainrobot:deletion>2018-05-22T12:47:12.000Z</domainrobot:deletion>
            </domainrobot:domain>
        </extension>
        <trID>
            <clTRID>ABC-12345</clTRID>
        </trID>
    </response>
</epp>
```
