Description


This function deletes a hosting plan (package).


Examples 




https://hostname.example.com:2087/cpsess##########/json-api/killpkg?api.version=1&pkgname=package1




https://hostname.example.com:2087/cpsess##########/xml-api/killpkg?api.version=1&pkgname=package1




whmapi1 killpkg pkgname=package1



{
  "metadata": {
    "version": 1,
    "reason": "OK",
    "result": 1,
    "command": "killpkg"
  }
}




<result>
    <metadata>
        <version>1</version>
        <reason>OK</reason>
        <result>1</result>
        <command>killpkg</command>
    </metadata>
</result>



   

Parameters

ParameterTypeDescriptionPossible valuesExample
pkgnamestring

Required

The hosting plan's name.

A valid hosting plan name on the server.package1

 

Returns

This function only returns metadata.