API referenceApplies to: Workspaces with access management
DELETE /api/v1/roles/{name}
Remove an existing custom role that is no longer needed.
Access
Use an identity allowed to administer workspace access.
Choose the right workspace credential. Ask your workspace administrator whether this API is available in your workspace.
For this example, set ACCESS_TOKEN to a user’s personal access token (PAT) with the required permission. A machine-client OAuth token also needs active permission enforcement and a role binding that grants this action to the client. Ask your administrator to confirm both.
Request
Path: {name} is an existing custom role. No request body. Built-in roles cannot be deleted. Check role bindings before removing a custom role.
Response
HTTP 200. Example response with sample values:
If the request fails
For 401, check the workspace URL and token. For 400, the role may be built-in. For 403, ask your administrator to check your access. New role definitions are managed by e6data.
Return to the API endpoint directory.Last modified on December 2, 2026