---
title: "Delete Project Role"
method: DELETE
path: "/v1/projects/{projectId}/roles/{roleId}"
tags: ["Project Roles"]
---

# Delete Project Role

`DELETE /v1/projects/{projectId}/roles/{roleId}`

## Request

- Base URL: `https://api.confident-ai.com`
- URL: `https://api.confident-ai.com/v1/projects/{projectId}/roles/{roleId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/docs/v1/projects/:projectId/roles/:roleId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes a custom project role. A role that is still assigned to one or more members cannot be deleted.

## Path parameters

- `projectId` string, required
- `roleId` string, required

## Response `200`

- DeleteRoleResponse
  - `success` boolean, required: Indicates if the request was successful
  - `data` object, required
    - `id` string: ID of the deleted role
    - `deleted` boolean: Always `true` when the role was deleted

## Changes

> 54 revisions in range; 3 not diffed.

- **2026-05-31** `173563ada468`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/changes/v1/projects/:projectId/roles/:roleId/delete.md)

---

[API](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api.md) - [All operations](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/revisions/95cdde71b65e?raw)
