Delete plugin

Uninstall and remove a WordPress plugin.


DELETE/api/servers/{server}/sites/{id}/wordpress/plugins/delete

Delete plugin

Deactivates and uninstalls the specified WordPress plugin, removing its files from the server. Requires WP-CLI to be installed on the server.

Required attributes

  • Name
    plugin
    Type
    string
    Description

    The plugin slug to delete (e.g. wordfence).

Query parameters

  • Name
    ondemand
    Type
    boolean
    Description

    When set to true, the command runs synchronously and returns the result directly. When omitted or false (default), the action is queued and processed in the background.

Request

DELETE
/api/servers/{server}/sites/{id}/wordpress/plugins/delete
curl -X DELETE "https://ploi.io/api/servers/{server}/sites/{id}/wordpress/plugins/delete?ondemand=true" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"plugin": "wordfence"}'

Response

{
  "status": "ok",
  "message": "Plugin deleted."
}