# Delete domain This function deletes a domain. This function does remove an addon domain's associated subdomain. You also run this function for the associated subdomain. Endpoint: GET /delete_domain Version: 11.134.0.5 Security: BasicAuth ## Query parameters: - `domain` (string, required) The name of the domain to delete. Example: "example.com" ## Response 200 fields (application/json): - `data` (object) - `data.type` (string,null) The type of domain that the function deleted. * — An addon domain. * — A parked (alias) domain. * — A subdomain. * — The domain does not exist on the server. Enum: "addon", "parked", "sub" - `data.username` (string) The cPanel user that owned the domain. * A cPanel account username. * — The function did find a cPanel account that owns the given domain. Example: "username" - `metadata` (object) - `metadata.command` (string) The method name called. Example: "delete_domain" - `metadata.reason` (string) The reason the API function failed when the field is . This field may display a success message when a function succeeds. Example: "OK" - `metadata.result` (integer) * - Success * - Failed. Check the field for more details. Enum: 0, 1 - `metadata.version` (integer) The version of the API function. Example: 1