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

# Delete a role

`DELETE /api/roles/{id}`

## Request

- Base URL: `https://app.cotool.ai`
- URL: `https://app.cotool.ai/api/roles/{id}`
- Auth: HTTP bearer

Delete an existing role for the current organization

## Path parameters

- `id` string, required

## Response `200`

Successful response

- object
  - `success` boolean, required

## Other responses

- `400`: Bad request — input validation failed or the request was malformed
- `401`: Unauthorized — missing or invalid API key / session
- `403`: Forbidden — the authenticated user lacks the required permissions
- `500`: Internal server error

---

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