---
title: "Delete multiple custom role"
method: DELETE
path: "/api/{org_id}/roles/bulk"
tags: ["Roles"]
---

# Delete multiple custom role

`DELETE /api/{org_id}/roles/bulk`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/roles/bulk`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/roles/bulk/delete.ts> (a function with typed inputs; its response is checked against the schema)

Permanently removes multiple custom roles from the organization. Users and groups assigned to this role will lose the associated permissions. Standard predefined roles cannot be deleted. Requires enterprise features to be enabled.

## Path parameters

- `org_id` string, required

## Request body

- BulkDeleteRequest
  - `ids` string[], required

## Response `200`

Success

- BulkDeleteResponse
  - `err` string, nullable
  - `successful` string[], required
  - `unsuccessful` string[], required

## Other responses

- `400`: Invalid role name

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
