> For the complete documentation index, see [llms.txt](https://docs.glesys.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.glesys.com/products/connectivity/domains-and-dns/how-tos/delete-a-domain.md).

# Delete a domain

***

## Delete a domain using the control panel

You can remove a domain from Glesys DNS by clicking **Delete Domain** at the very bottom of a domain's overview page.

<figure><img src="/files/yH6Fsav8KUWWP7juXk8w" alt=""><figcaption></figcaption></figure>

Note, however, that it is not possible to delete an active domain for which Glesys is the registrar. If you want to let a domain expire, you can disable [Automatic Renewal](/products/connectivity/domains-and-dns/how-tos/manage-renewal-for-a-domain.md) instead.

It is also not possible to delete a domain that has active email accounts or email aliases with Glesys. These must first be deleted if you want to remove the domain. See [Delete an email account](/products/other/email/how-tos/delete-an-email-account.md) for more information.

## Delete a domain using the API

To delete a domain using the [API](/platform/control-panel/api.md), use the [domain/delete](https://github.com/GleSYS/API-docs/wiki/API-Documentation#domaindelete) endpoint.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.glesys.com/products/connectivity/domains-and-dns/how-tos/delete-a-domain.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
