.pdf)
WHM Plugins
dumpzone function, locate the Line variable corresponding to the data you wish to remove.
removezonerecord function call as detailed below.
removezonerecord function from within your custom script:
/xml-api/removezonerecord function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/xml-api/removezonerecord
removezonerecord function from within your custom script:
/json-api/removezonerecord function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/json-api/removezonerecord
removezonerecord function takes the following required variables as input: removezonerecord function. 1 — success.
0 — failure.
https://example.com:2087/xml-api/removezonerecord?domain=example.com&Line=40 in WebHost Manager will produce output similar to:
<removezonerecord>
<result>
<status>1</status>
<statusmsg>Wrote zone file.</statusmsg>
</result>
</removezonerecord>
https://example.com:2087/json-api/removezonerecord?domain=example.com&Line=40 in WebHost Manager will produce output similar to:
{
"result":[
{
"status":1,
"statusmsg":"Wrote zone file."
}
]
}