---
title: "Remove Role from Agent"
method: DELETE
path: "/agents/{agentId}/roles/{actorRoleId}"
tags: ["agents"]
---

# Remove Role from Agent

`DELETE /agents/{agentId}/roles/{actorRoleId}`

Removes a role from an agent.

## Path parameters

- `agentId` string, required — Agent ID
- `actorRoleId` string, required — Actor Role ID

## Headers

- `Authorization` string, required
- `X-Disable-Hooks` 'true', required

## Response `200`

Response with status 200

- TypeCommonsSuccess — Informs whether or not a request was successful
  - `data` TypeCommonsSuccessData
    - `success` boolean, required

## Other responses

- `400` — Error response with status 400
- `403` — Error response with status 403
- `404` — Error response with status 404

---

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