---
title: "DELETE /roles/{roleId}"
method: DELETE
path: "/roles/{roleId}"
tags: ["Roles"]
---

# DELETE /roles/{roleId}

`DELETE /roles/{roleId}`

## Request

- Base URL: `https://api.cxxx.eagleeyenetworks.com/api/v3.0`
- URL: `https://api.cxxx.eagleeyenetworks.com/api/v3.0/roles/{roleId}`
- Auth: HTTP bearer

This endpoint deletes a role from current user's account. A role can only be deleted if it is not assigned to any user. Admin users and non-admin users with 'Role' permission can delete roles.

## Response `204`

Role deleted.

## Other responses

- `400`: The supplied object is invalid. Error detail will contain the validation error.
- `401`: You are not authenticated. Please authenticate and try again.
- `403`: You have no permission to access the specified resource.
- `404`: Referenced resource could not be found.
- `409`: There was a conflict while trying to perform your request. See error details for more information.
- `500`: Something went wrong in the server. Please try again.

---

[API](https://skmtc.dev/eagleeyenetworks/apis/user-accounts.md) - [All operations](https://skmtc.dev/eagleeyenetworks/apis/user-accounts/llms.txt) - [OpenAPI document](https://skmtc.dev/eagleeyenetworks/apis/user-accounts/revisions/e6bfa6544945?raw)
