Link Search Menu Expand Document Documentation Menu

Flush Cache API

Introduced 1.0

Flushes the Security plugin user, authentication, and authorization cache.

DELETE is the only supported method. GET, PUT, and POST requests to _plugins/_security/api/cache return a 405 error that names DELETE as the allowed method.

Endpoints

DELETE /_plugins/_security/api/cache

Example request

DELETE _plugins/_security/api/cache

Example response

{
  "status": "OK",
  "message": "Cache flushed successfully."
}

Response body fields

The response body is a JSON object with the following fields.

Field Data type Description
status String The status of the request. OK indicates that OpenSearch flushed the cache.
message String A message confirming that OpenSearch flushed the cache.
350 characters left

Have a question? .

Want to contribute? or .