latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

DNS
Domain Management

Delete domain

This function deletes a domain.

Note:

This function does not remove an addon domain's associated subdomain. You must also run this function for the associated subdomain.

get/delete_domain

Query parameters

domainstring domain required
Example:example.com

The name of the domain to delete.

Response

HTTP Request was successful.

Example response

{
  "data": {
    "type": "addon",
    "username": "username"
  },
  "metadata": {
    "command": "delete_domain",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}