Login/Register
Installatron Plugin
API Documentation

Uninstall Plugin

DELETE /installs/{id}/plugins/{slug}

Uninstall a plugin of the specified instance of WordPress. This deletes the plugin's files.

Parameters


API

/installs/{id}/plugins/{slug}
API endpoint.

{id} is the internal ID of the install to edit the plugin of.
{slug} is the internal ID of the plugin to edit.
DELETE
Method.

Optional parameters

user
string
The system or control panel username the task is to be performed on or for.

default is the owner of the installation identified by {id} in the API request

Special parameters

dryrun
enum
Perform a test run of this API call: run the tests, check connections to the database server and remote locations, but don't actually perform this task itself. This is just a test-run to make sure that when it is run for real that there is nothing to stop it from working.
  • none
    = No dry run.
  • all
    = Check all input values and test all connections.
  • input
    = Check only the input values.


default is
none

Response


Response

status
int
HTTP status code describing the result of the request.

200
for Success.
All other numbers represent errors which are described in the errcode output below.
result
boolean
true
= Success.
false
= Failure.
errcode
string
status code 200
complete_dryrun
dryrun was enabled and finished without error.
status code 403
invalid_argument_user
User specified is not authorized to access this data.
status code 404
install_not_found
The app ID was not found or it was found by is owned by a user who does not have access to it.
plugin_not_found
The specified plugin was not found on the specified install.
user_not_found
The specified user could not be found in the system control panel.
errfield
enum
If the cause of an error was an incorrect field value then this will show the ID of the field.
(eg.
login
,
passwd
,
email
)
message
string
Message describing the result of the request. Do not rely on this to determine the success or failure of the request.
data


id
string
The "slug" (aka. internal ID) of the plugin.
(eg.
akismet
,
limit-login-attempts-reloaded
)
activated
boolean
State of the plugin.
true
= Plugin is activated.
false
= Plugin is deactivated.
autoup
enum
Automatic update configuration for the plugin.
none
= Never update.
all
= All updates will be performed.
version
string
Current version of the plugin.
(eg.
5.4.3
)
name
string
Full name of the plugin.
(eg.
Akismet Anti-spam: Spam Protection
)
description
string
Author's long description of the plugin.
author
string
Author's name.
(eg.
Automattic - Anti-spam Team
)
version_available
string
Newest version available of the plugin.
(eg.
5.4.4
)

Full Examples

Example: Uninstall a plugin of the WordPress install with ID 1234567890abcdefghij12345

Method: curl
Installatron Product: Installatron Plugin (switch to Installatron Server)
$cpapi=https://{USER}:{PASS}@{SERVER_IP}:2083/3rdparty/installatron/index.cgi?     # cpanel
#$cpapi=https://{USER}:{PASS}@{SERVER_IP}:2087/3rdparty/installatron/index.cgi?    # whm
#$cpapi=https://{USER}:{PASS}@{SERVER_IP}:2222/CMD_PLUGINS/installatron/index.raw? # directadmin

curl -X DELETE $cpapi/installs/1234567890abcdefghij12345/plugins/akismet \
    -H 'Accept: application/json'
Response: json
{
    "status": 200,
    "result": true,
    "message": "The task is complete.\n",
    "errcode": null,
    "errfield": null,
    "data": {
        "id": "limit-login-attempts-reloaded",
        "activated": false,
        "autoup": "none",
        "version": "2.3.4",
        "name": "Limit Login Attempts Reloaded",
        "description": "Block excessive login attempts and protect your site against brute force attacks. Simple, yet powerful tools to improve site performance.",
        "author": "Limit Login Attempts Reloaded",
        "version_available": "2.3.4"
    }
}


© 2004 - 2025 Installatron LLC. All rights reserved. Privacy Policy.