Delete hosting plan

This function deletes a hosting plan (package).

SecurityBasicAuth
Request
query Parameters
pkgname
required
string

The hosting plan's name.

Note:

You cannot delete a hosting plan that a cPanel account currently uses.

Example: pkgname=package1
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
get/killpkg
Request samples
whmapi1 --output=jsonpretty \
  killpkg \
  pkgname='package1'
Response samples
application/json
{
  • "metadata": {
    • "command": "killpkg",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}