---
title: "Detach a user's access profile"
method: DELETE
path: "/api/users/{target_user_id}/access-profiles/{profile_id}"
tags: ["Access Profiles"]
---

# Detach a user's access profile

`DELETE /api/users/{target_user_id}/access-profiles/{profile_id}`

Removes the profile from the user and deletes every virtual key it produced. Fails closed if a virtual key cannot be deleted.

## Path parameters

- `target_user_id` string, required
- `profile_id` integer, required

## Response `200`

Profile detached.

- object
  - `message` string
  - `deleted_vk_names` string[]
  - `deleted_vk_count` integer

## Other responses

- `404` — User access profile not found
- `500` — Internal server error

---

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