
The curl DELETE command can be used to delete a plugin. This assumes you have already created a plugin. If not, refer to Kong - create Plugin using curl. Let's say you've created a plugin with the following ID. If you do not know the ID, refer to Kong - get Plugin using cURL.
a714d55e-a168-4efc-ae1a-6c380b0d5c84
On the Kong server
If Kong is running on docker, refer to Kong - Docker container command line for the steps on how to issue commands in the Kong Docker container. Assuming you are using the default kong.conf file, the Kong Admin API will listen on port 8001.
admin_listen = 127.0.0.1:8001
If issuing this command on the Kong server, this command will delete the plugin that has ID a714d55e-a168-4efc-ae1a-6c380b0d5c84.
curl -X DELETE "http://localhost:8001/plugins/a714d55e-a168-4efc-ae1a-6c380b0d5c84"
From a remote server
If issuing this command from a remote server, this command will delete the plugin that has ID a714d55e-a168-4efc-ae1a-6c380b0d5c84.
curl -X DELETE "http://hostname:8000/admin-api/plugins/a714d55e-a168-4efc-ae1a-6c380b0d5c84"
Did you find this article helpful?
If so, consider buying me a coffee over at