---
title: "Delete a role."
method: DELETE
path: "/roles/{role_id}"
tags: ["Roles"]
---

# Delete a role.

`DELETE /roles/{role_id}`

## Request

- Base URL: `https://console.jumpcloud.com/api/v2`
- URL: `https://console.jumpcloud.com/api/v2/roles/{role_id}`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/docs/roles/:role_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes a role with the specified ID.

## Headers

- `x-org-id` string
- `x-provider-id` string

## Response `204`

Role deleted successfully

## Other responses

- `400`: Bad Request
- `401`: Unauthenticated
- `403`: Unauthorized
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error
- `default`: Unexpected error

---

[API](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2.md) - [All operations](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/revisions/3f09fe63caaa?raw)
