> 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

Deleting a domain will remove it from Glesys DNS. Note that it's not possible to delete a domain that is active or has Glesys email accounts connected to it.

***

## 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="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2FZ1ldtIzdwzeg14FKGSDX%2Fdomain-delete.png?alt=media&amp;token=b7d5a53b-ad7e-4473-90dd-f85807341d22" 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.
