---
title: "Detach role from access profile"
method: DELETE
path: "/api/access-profiles/{id}/roles/{role_id}"
tags: ["Access Profiles"]
---

# Detach role from access profile

`DELETE /api/access-profiles/{id}/roles/{role_id}`

## Path parameters

- `id` integer, required
- `role_id` integer, required

## Response `200`

Role detached.

- object
  - `message` string

## Other responses

- `404` — Role attachment not found
- `500` — Internal server error

---

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