Kong Community Edition (KongCE) - delete Consumers ACLs using REST API

by
Jeremy Canfield |
Updated: February 12 2022
| Kong Community Edition (KongCE) articles
The curl DELETE command can be used to delete a Consumers ACLs.
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.
If issuing this command on the Kong server, this command will delete a Consumers ACLs.
curl -X DELETE "http://localhost:8001/consumers/consumer_name_or_id/acls/acl_id"
From a remote server
If issuing this command from a remote server, this command will delete a Consumers ACLs.
curl -X DELETE "http://hostname:8000/admin-api/consumers/consumer_name_or_id/acls/acl_id"
Validation
If the delete is successful, there will be no output returned.
If the ACL does not exist, the attempt to delete the ACL will return the following.
{
"message":"Not Found"
}
Did you find this article helpful?
If so, consider buying me a coffee over at