---
title: "Delete a company role"
method: DELETE
path: "/v1/companies/{company_id}/company_roles/{id}"
tags: ["Company role"]
---

# Delete a company role

`DELETE /v1/companies/{company_id}/company_roles/{id}`

## Request

- Base URL: `https://api.cardda.com`
- URL: `https://api.cardda.com/v1/companies/{company_id}/company_roles/{id}`
- Auth: HTTP bearer

Deletes a custom company role. A role that is still assigned to one or more
memberships cannot be deleted and returns `422`.

## Path parameters

- `company_id` string, uuid, required
- `id` string, required

## Parameters

- `#/paths/~1v1~1users/get/parameters/0` (unresolved $ref)

## Response `200`

The role was deleted.

- object
  - `message` string

## Other responses

- `401`: Unauthorized
- `404`: Company or company role not found
- `422`: The role is assigned to one or more memberships and cannot be deleted.

---

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