Delete Role
Note:
Version Requirement:This functionality is for Dremio v18.0+ Enterprise Edition only.
This API deletes a role with via an ID.
Endpoint Syntax
Method and URLDELETE /api/v3/role/{id}
Required Privileges
All users executing this Rest API must have the MANAGE GRANTS privilege assigned to receive a response output.
Response Output
This is the standard response output for the API.
Response output{"data": [
{
"name": "src1.folder1.db1",
"type": "dataset",
"privilege": "SELECT"
},
…
]
}
Response Codes
204
- Successful if all operations are successful.403
- The user executing the API request lacks theMANAGE GRANTS
permission.404
- The role is not found.
Example
Example requestcurl -X DELETE --location "http://localhost:9047/api/v3/role/aa6d94e6-8cb7-4331-a881-e24945d74ad1" \
-H "Authorization: _dremiopu2916f7aph06aahv4ksu4life" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Was this page helpful?
Glad to hear it! Thank you for your feedback.
Sorry to hear that. Thank you for your feedback.