How do you disable a plugin that is already bundled with Kong

I am trying to disable the “file-log” plugin which is enabled “true” by default.

“Disable” can mean several things.

In a “default” environment (what you get after running kong migrations bootstrap) the plugins are available, meaning that you can install plugins on Services or Routes.

You can make them not available (so they can not even be associated to services) by using the plugins config option.

On the other hand, if you have a plugin already set up over a Service or Route, you can deactivate it with a PATCH request which sets the enabled flag to false. When you initially associate the plugin to a Service or Route (with a POST request) you can also set enabled to false.