Delete roles in the native realm. The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. The delete roles API cannot remove roles that are defined in roles files. ##Required authorization
- Cluster privileges:
manage_security
DELETE
/_security/role/{name}
Console
DELETE /_security/role/my_admin_role
curl \
--request DELETE 'http://api.example.com/_security/role/{name}'
Response examples (200)
A successful response from `DELETE /_security/role/my_admin_role`. If the role is successfully deleted, `found` is set to `true`.
{
"found" : true
}