Description
This function deletes a subdomain.
Warning:
We strongly recommend that you use UAPI instead of cPanel API 2. However, no equivalent UAPI function exists.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
domain |
string |
Required The subdomain name to delete. |
A valid domain name. |
subdomain.example.com |
Returns
Return |
Type |
Description |
Possible values |
Example |
reason |
string |
A message of success or a reason for failure. |
A string that describes the success or error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded. |
|
1 |