---
title: "Delete role"
url: https://hexelstudio.com/docs/api/ciam-iam/roles/delete
---

# Delete role

**DELETE** `/roles/{role_id}`

Delete a role by ID

## Path parameters

- `role_id: string`

  Role ID

## Headers

- `Authorization: string`

  `Bearer <token>`.

## Returns

`204` No Content

## Errors

- `500` Internal Server Error

## Example

```bash
curl --request DELETE \
  --url 'https://api.hexelstudio.com/v1/roles/{role_id}' \
  --header "Authorization: Bearer $ACCESS_TOKEN"
```

### Response (500)

```json
{
  "key": "string"
}
```
