---
title: "Delete a custom role"
method: DELETE
path: "/roles/{roleId}"
tags: ["roles"]
---

# Delete a custom role

`DELETE /roles/{roleId}`

This operation will delete a custom role.
Requires the privilege [`ROLES_WRITE`](https://www.gremlin.com/docs/user-management/access-control/#privileges)

## Path parameters

- `roleId` string, required

## Other responses

- `400` — Bad arguments
- `401` — Authorization header missing or malformed. Please provide proper credentials in the authorization header.
- `403` — User requires privilege: ROLES_WRITE

---

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