.pdf)
WHM Plugins
killpkg function from within your custom script:
/xml-api/killpkg 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/killpkg
killpkg function from within your custom script:
/json-api/killpkg 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/killpkg
killpkg function takes the following required variable as input: killpkg function. 1 — yes.
0 — no.
https://example.com:2087/xml-api/killpkg?pkg=packagename in WebHost Manager will produce output similar to the following:
<killpkg>
<result>
<status>1</status>
<statusmsg>The package was successfully deleted.</statusmsg>
</result>
</killpkg>
https://example.com:2087/json-api/killpkg?pkg=packagename in WebHost Manager will produce output similar to the following:
{
"result":[
{
"status":1,
"statusmsg":"The package was successfully deleted."
}
]
}