[[reference-security-clear_cached_privileges]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || This file is autogenerated, DO NOT send pull requests that changes this file directly. || || You should update the script that does the generation, which can be found in: || || https://github.com/elastic/elastic-client-generator-js || || || || You can run the script with the following command: || || npm run elasticsearch -- --version || || || || || || || =========================================================================================================================== //////// [discrete] === client.security.clearCachedPrivileges Clear the privileges cache. Evict privileges from the native application privilege cache. The cache is also automatically cleared for applications that have their privileges updated. {ref}/security-api-clear-privilege-cache.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (SecurityClearCachedPrivilegesRequest, options?): Promise ---- [discrete] ===== `SecurityClearCachedPrivilegesRequest` [source,ts] ---- interface SecurityClearCachedPrivilegesRequest extends <> { application: <> } ---- [discrete] ===== `SecurityClearCachedPrivilegesResponse` [source,ts] ---- interface SecurityClearCachedPrivilegesResponse { _nodes: <> cluster_name: <> nodes: Record } ----