---
title: "Delete a role of an organization. Only the organization owner or a delegated team member with the manageRoles permission may call this."
method: DELETE
path: "/v2/organizations/{organizationId}/roles/{roleId}"
tags: ["Organization Roles Api Service"]
---

# Delete a role of an organization. Only the organization owner or a delegated team member with the manageRoles permission may call this.

`DELETE /v2/organizations/{organizationId}/roles/{roleId}`

## Request

- Base URL: `https://app.metricool.com/api`
- URL: `https://app.metricool.com/api/v2/organizations/{organizationId}/roles/{roleId}`
- Auth: none declared

## Path parameters

- `organizationId` integer, required
- `roleId` integer, required

## Response `200`

Role deleted.

- JsonOkResponseBoolean
  - `metadata` object
  - `page` JsonPaging
    - `next` string
  - `data` boolean

## Other responses

- `400`: The role still has collaborator assignments or is still held by a team member, or roleId does not belong to the organization owner or is a SYSTEM/INTERNAL role.
- `403`: Caller is not a regular-user session, the organization permissions feature is disabled for the organization's owner, the organization's owner's plan does not qualify for an organization, or the caller cannot manage the roles of this organization, or roleId is the role granting the caller their own delegation.
- `404`: Organization not found, its owner account could no longer be resolved, or no role exists with roleId.

---

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