You're viewing version 3.8 of the OpenSearch documentation. This version is no longer maintained. For the latest version, see the current documentation. For information about OpenSearch version maintenance, see Release Schedule and Maintenance Policy.
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. |