Description


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


Examples




https://hostname.example.com:2087/cpsess##########/json-api/delpkgext?api.version=1&name=package1&_DELETE_EXTENSIONS=extension1




https://hostname.example.com:2087/cpsess##########/xml-api/delpkgext?api.version=1&name=package1&_DELETE_EXTENSIONS=extension1




whmapi1 delpkgext name=package1 _DELETE_EXTENSIONS=extension1



{
  "data": {
    "pkg": "package1"
  },
  "metadata": {
    "version": 1,
    "reason": "OK",
    "result": 1,
    "command": "delpkgext"
  }
}




<result>
    <data>
        <pkg>package1</pkg>
    </data>
    <metadata>
        <version>1</version>
        <reason>OK</reason>
        <result>1</result>
        <command>delpkgext</command>
    </metadata>
</result>



   

Parameters

ParameterTypeDescriptionPossible valuesExample
name
string

Required

The hosting plan's name.

A valid hosting plan name.

package1
_DELETE_EXTENSIONS
string

Required

The package extension to delete.

A space-delimited list of one or more package extensions on the server.

  • You can also include the extension's variables in your function call, in key=value format. Consult the extension's documentation for a list of possible variables.
  • Extension names and variables are case-sensitive.


extension1

Returns

ReturnTypeDescriptionPossible valuesExample

pkg

string

The new hosting plan's name.

The name input parameter's value.package1