---
title: "Domain prereg delete"
url: "https://help.internetx.com/en/api/core-domain-prereg-delete/"
lang: "en"
section: "API reference — API reference (XML/JSON)"
breadcrumb: "API documentation (JSON/XML) > Tasks > Domain prereg tasks"
updated: "2023-09-18"
---

# Domain prereg delete

## Function

The _DomainPreregDelete_ task deletes a preregistration for a domain. This is possible only if the domain has one of the following statuses:

-   OPEN
-   PENDING
-   FAILED
-   AUTO\_CANCEL
-   ACCEPT
-   INVALID\_NAME
-   DECLINE
-   CANCEL
-   TMCH\_CLAIM\_REJECTED
-   TMCH\_CLAIM\_EXPIRED
-   TMCH\_CLAIM\_FAILED
-   FAILED\_REF

You can delete a preregistered domain by specifying the domain name and the preregistration phase or by specifying the order reference. You can determine the order number by a [DomainPreregInfo](/en/api/core-domain-prereg-info/) query.

### Description

Route: DELETE /domainPrereg/{reference}

There is no need to send a body.

```
{
    "stid": "20210826-app-114113",
    "status": {
        "code": "S0110003",
        "text": "Preregistration was deleted successfully. ",
        "type": "SUCCESS"
    },
    "object": {
        "type": "DomainPrereg",
        "value": "example.web",
        "data": {
            "name": "example.web",
            "orderReference": "478f63e4-d993"
        }
    }
}
```

Task code: 0110003  
Uses [Domain Prereg](/en/api/core-domain-prereg-object/) object  

```
<request>
	<auth>
		<user>customer</user>
		<password>password</password>
		<context>4</context>
	</auth>
	<task>
		<code>0110003</code>
		<domain_prereg>
			<name>example.web</name>
			<phase>sunrise2b</phase>
		</domain_prereg>
		<reply_to>customer@example.com</reply_to>
	</task>
</request>
```

```
<response>
    <result>
        <data>
            <domain_prereg>
                <order_reference>478f63e4-d993</order_reference>
            </domain_prereg>
        </data>
        <status>
            <code>S0110003</code>
            <text>Preregistration was deleted successfully.</text>
            <type>success</type>
            <object>
                <type>domain_prereg</type>
                <value>example.web</value>
            </object>
        </status>
    </result>
    <stid>20210826-app-113972</stid>
</response>
```
