原英文版地址: https://www.elastic.co/guide/en/elasticsearch/reference/7.7/security-api-delete-user.html, 原文档版权归 www.elastic.co 所有
本地英文版地址: ../en/security-api-delete-user.html

Delete users APIedit

Deletes users from the native realm.

Requestedit

DELETE /_security/user/<username>

Prerequisitesedit

  • To use this API, you must have at least the manage_security cluster privilege.

Descriptionedit

For more information about the native realm, see Realms and Native user authentication.

Path parametersedit

username
(Required, string) An identifier for the user.

Examplesedit

The following example deletes the user jacknich:

DELETE /_security/user/jacknich

If the user is successfully deleted, the request returns {"found": true}. Otherwise, found is set to false.

{
  "found" : true
}