---
title: "Unassign project role from group"
method: DELETE
path: "/projects/{project_id}/groups/{group_id}/roles/{role_id}"
tags: ["Project group role assignments"]
---

# Unassign project role from group

`DELETE /projects/{project_id}/groups/{group_id}/roles/{role_id}`

## Request

- Base URL: `https://api.openai.com/v1`
- URL: `https://api.openai.com/v1/projects/{project_id}/groups/{group_id}/roles/{role_id}`
- Auth: HTTP bearer

Unassigns a project role from a group within a project.

## Path parameters

- `project_id` string, required
- `group_id` string, required
- `role_id` string, required

## Response `200`

Project role unassigned from the group successfully.

- DeletedRoleAssignmentResource: Confirmation payload returned after unassigning a role.
  - `object` string, required: Identifier for the deleted assignment, such as `group.role.deleted` or `user.role.deleted`.
  - `deleted` boolean, required: Whether the assignment was removed.

## Other responses

- `400`: The request parameters are invalid or the requested operation cannot be performed.
- `403`: The caller does not have permission to perform this operation.
- `404`: The endpoint is unavailable or a requested resource was not found in this organization or project.
- `429`: The request was rejected because a rate limit was exceeded.

## Changes

- **2026-10-06** `487892d3954e`: 4 info
  - added the optional property `error/anyOf[#/components/schemas/Error]/misalignment/review_target` to the response with the `403` status
  - added the optional property `error/misalignment/review_target` to the response with the `400` status
  - added the optional property `error/misalignment/review_target` to the response with the `404` status
  - added the optional property `error/misalignment/review_target` to the response with the `429` status
- **2026-10-05** `7f654af7f94f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omnistack-sh/apis/openai-api/changes/projects/:project_id/groups/:group_id/roles/:role_id/delete.md)

---

[API](https://skmtc.dev/omnistack-sh/apis/openai-api.md) - [All operations](https://skmtc.dev/omnistack-sh/apis/openai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/omnistack-sh/apis/openai-api/revisions/0a26f104d35f?raw)
