You're viewing version 3.8 of the OpenSearch documentation. This version is no longer maintained. For the latest version, see the current documentation. For information about OpenSearch version maintenance, see Release Schedule and Maintenance Policy.
Delete Role API
Introduced 1.0
Deletes the specified role.
Endpoints
DELETE /_plugins/_security/api/roles/{role}
Example request
DELETE _plugins/_security/api/roles/test-role
Example response
{
"status": "OK",
"message": "'test-role' deleted."
}