---
title: "Delete custom user role."
method: DELETE
path: "/api/{cloudId}/v1/roles/{identifier}"
tags: ["Custom user roles"]
---

# Delete custom user role.

`DELETE /api/{cloudId}/v1/roles/{identifier}`

Deletes a custom user role. 
 - The user should have admin role and custom user role right.

## Path parameters

- `identifier` string, required

## Query parameters

- `identifierType` 'id' | 'name' — type of the identifier.

## Response `204`

Returned if the request is successful.

## Other responses

- `403` — Returned if the request user does not have permission to delete a custom user role
- `404` — Returned if the role with the identifier cannot be found.
- `422` — Returned if the requested identifier doesn't belong to custom user role.

---

[API](https://skmtc.net/atlassian/apis/jsm-operations-api.md) · [All operations](https://skmtc.net/atlassian/apis/jsm-operations-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/jsm-operations-api/versions/ed65f017bcb8/schema)
