Description
This function removes a zone record.
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
Parameters |
Type |
Description |
Possible values |
Example |
domain |
string |
Required The record's domain. |
A valid domain name. |
example.com |
line |
integer |
Required The line of the record. |
A positive integer. |
42 |
Returns
Return |
Type |
Description |
Possible values |
Example |
result |
hash |
A hash that contains the results of the change to the nameserver. |
This hash includes the newserial, statusmsg, and statusreturns. |
|
newserial |
integer |
The new serial number of the zone file. The function returns this value in the result hash. |
A positive integer. |
2014101603 |
statusmsg |
string |
A status message from the DNS server. The function returns this value in the result hash. |
A string. |
|
status |
string |
Whether the function succeeded. The function returns this value in the result hash. |
|
1 |
reason |
string |
A reason for failure. Note: This function only returns areason value if it failed. |
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded. |
|
1 |