xpack.security.clearCachedRealmsedit

client.xpack.security.clearCachedRealms({
  realms: string | string[],
  usernames: string | string[]
})

Reference

realms

string | string[] - Comma-separated list of realms to clear

usernames

string | string[] - Comma-separated list of usernames to clear from the cache