Remove a plugin (its providers go too; the folder stays)
DELETE
/v1/studio/admin/plugins/{plugin}
const url = 'http://localhost:8300/v1/studio/admin/plugins/example';const options = { method: 'DELETE', headers: {'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url http://localhost:8300/v1/studio/admin/plugins/example \ --header 'Authorization: Bearer <token>' \ --header 'x-api-key: <x-api-key>'Admin only (403). Drops the plugin and every provider made from it; the folder stays in plugins/, so a Rescan finds it again, Off. 404 unknown; 409 <provider> is in use by an unfinished batch.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”plugin
required
string
A plugin’s name (its folder; unknown or malformed = 404)
Responses
Section titled “Responses”Removed
Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}Valid token without the admin role: “admin role required”
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}Not found
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}The resource’s state forbids this
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}