---
title: "Delete Role"
method: DELETE
path: "/api/v1/authz/roles/{role_id}"
tags: ["Authorization"]
---

# Delete Role

`DELETE /api/v1/authz/roles/{role_id}`

Delete a custom role.

System roles cannot be deleted; roles with active assignments return 409
(delete the assignments first).

## Path parameters

- `role_id` string, uuid, required

## Response `204`

Successful Response

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/langflow-ai/apis/langflow.md) · [All operations](https://skmtc.net/langflow-ai/apis/langflow/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/langflow-ai/langflow/revisions/22962dc5e81b/schema)
