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.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ delete_domain \ domain='example.com'
{- "data": {
- "type": "addon",
- "username": "username"
}, - "metadata": {
- "command": "delete_domain",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}