IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Delete users API
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Delete users API
editDeletes users from the native realm.
Request
editDELETE /_xpack/security/user/<username>
Description
editFor more information about the native realm, see Realms and Configuring a native realm.
Path Parameters
edit-
username
(required) - (string) An identifier for the user.
Authorization
editTo use this API, you must have at least the manage_security
cluster privilege.
Examples
editThe 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 }
Was this helpful?
Thank you for your feedback.