Remove hosting plan extension

This function deletes a package extension from a hosting plan (package).

Note:

  • You can additionally include extension's variables in your function call, in key=value format. Consult the extension's documentation for a list of possible variables. Extension variable names are case-sensitive.
SecurityBasicAuth
Request
query Parameters
_DELETE_EXTENSIONS
required
string

The space delimited package extensions to delete.

Note:

  • Extension names are case-sensitive.
Example:
name
required
string

The hosting plan's name.

Example: name=package1
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/delpkgext
Request samples
whmapi1 --output=jsonpretty \
  delpkgext \
  name='package1' \
  _DELETE_EXTENSIONS='extension1 extension2'
Response samples
application/json
{
  • "data": {
    • "pkg": "package1"
    },
  • "metadata": {
    • "command": "delpkgext",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}