Not able to delete globally added plugin

We are running Kong for Kubernetes in DB mode.

I created OAuth2 plugin globally as below.

curl -X POST --url http://tshost:8086/plugins --data “name=oauth2” Ø

–data “config.scopes=email” Ø

–data “config.mandatory_scope=true” Ø

–data “config.enable_client_credentials=true”

æ"service":null,“created_at”:1619615214,“consumer”:null,“protocols”:Æ"grpc",“grpcs”,“http”,“https"Å,“name”:“oauth2”,“id”:“50e23e92-8092-4cf9-98fc-1e8acab16eaf”,“tags”:null,“config”:æ"global_credentials”:false,“reuse_refresh_token”:false,“enable_implicit_grant”:false,“mandatory_scope”:true,“scopes”:Æ"email"Å,“accept_http_if_already_terminated”:false,“anonymous”:null,“hide_credentials”:false,“enable_authorization_code”:false,“provision_key”:“DQBA2TWmqhRECf2BWRwaqutVTNbnbQjz”,“refresh_token_ttl”:1209600,“pkce”:“lax”,“enable_client_credentials”:true,“enable_password_grant”:false,“token_expiration”:7200,“auth_header_name”:"authorization"å,“enabled”:true,“route”:nullå

Now I am trying to delete this plugin which is not working. Any help please.

curl -X DELETE -v http://tshost:8086/plugins/50e23e92-8092-4cf9-98fc-1e8acab16eaf

  • Trying 172.16.33.190…

  • TCP_NODELAY set

  • Connected to tshost (172.16.33.190) port 8086 (#0)

DELETE /plugins/50e23e92-8092-4cf9-98fc-1e8acab16eaf HTTP/1.1

Host: tshost:8086

User-Agent: curl/7.54.0

Accept: /

< HTTP/1.1 500 Internal Server Error

< Date: Wed, 28 Apr 2021 13:56:54 GMT

< Content-Type: application/json; charset=utf-8

< Connection: keep-alive

< Access-Control-Allow-Origin: *

< Content-Length: 42

< X-Kong-Admin-Latency: 18

< Server: kong/2.4.0

<

  • Connection #0 to host tshost left intact

{“message”:“An unexpected error occurred”}


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ