Delete hosting plan

This function deletes a hosting plan (package).

Authorizations:
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

Response Schema: application/json
object

Request samples

whmapi1 --output=jsonpretty \
  killpkg \
  pkgname='package1'

Response samples

Content type
application/json
{
  • "metadata": {
    • "command": "killpkg",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}