Uninstalling Plesk Extensions

To uninstall a Plesk extension, use the uninstall operation.

Next in this section:

Request Packet Structure

Response Packet Structure

Samples

 
Request Packet Structure

A request XML packet for uninstalling extensions contains the uninstall operation node:

<packet>
  <extension>
    <uninstall>
      <id>
    </uninstall>
  </extension>
</packet>
  • The id node is required. It specifies the ID of the extension to be installed.
 
Response Packet Structure

The uninstall node of the output XML packet is of complex type which has the following presentation:

extension_install_response

  • result, required.
    It wraps the result of the uninstall operation. Data type: resultType.
  • status, required.
    It returns the execution status of the operation. Data type: string. Allowed values: ok | error.
  • errcode, required if the operation fails.
    Returns error code. Data type: unsignedInt.
  • errtext, required if the operation fails.
    Returns error message. Data type: string.
 
Samples

The following request packet uninstalls an extension with the given ID:

<packet>
  <extension>
    <uninstall>
      <id>wp-toolkit</id>
    </uninstall>
  </extension>
</packet>

Response:

<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.9.1">
  <extension>
    <uninstall>
      <result>
        <status>ok</status>
      </result>
    </uninstall>
  </extension>
</packet>
 

Leave your feedback on this topic here

If you have questions or need support, please visit the Plesk forum or contact your hosting provider.
The comments below are for feedback on the documentation only. No timely answers or help will be provided.