NOTE: You are looking at documentation for an older release. For the latest information, see the current release documentation.
Delete users APIedit
Deletes users from the native realm.
Requestedit
DELETE /_xpack/security/user/<username>
Descriptionedit
For more information about the native realm, see Realms and Configuring a native realm.
Path Parametersedit
-
username
(required) - (string) An identifier for the user.
Authorizationedit
To use this API, you must have at least the manage_security
cluster privilege.
Examplesedit
The following example deletes the user jacknich
:
DELETE /_xpack/security/user/jacknich
If the user is successfully deleted, the request returns {"found": true}
.
Otherwise, found
is set to false.
{ "found" : true }