# Clear the API key cache **POST /_security/api_key/{ids}/_clear_cache** Evict a subset of all entries from the API key cache. The cache is also automatically cleared on state changes of the security index. ## Required authorization * Cluster privileges: `manage_security` ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Api key auth - Basic auth - Bearer auth ## Parameters ### Path parameters - **ids** (string | array[string]) Comma-separated list of API key IDs to evict from the API key cache. To evict all API keys, use `*`. Does not support other wildcard patterns. ## Responses ### 200 #### Body: application/json (object) - **_nodes** (object) - **cluster_name** (string) - **nodes** (object) [Powered by Bump.sh](https://bump.sh)