Delete users API

edit

Deletes users from the native realm.

Request

edit

DELETE /_security/user/<username>

Prerequisites

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

Description

edit

For more information about the native realm, see Realms and Configuring a native realm.

Path parameters

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

Examples

edit

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
}