---
title: "Remove project access for a user"
method: DELETE
path: "/api/admin/projects/{projectId}/users/{userId}/roles"
tags: ["Projects"]
---

# Remove project access for a user

`DELETE /api/admin/projects/{projectId}/users/{userId}/roles`

**Enterprise feature**

Removes project access for a user by removing all of its roles for the project.

## Path parameters

- `projectId` string, required
- `userId` string, required

## Response `200`

This response has no body.

## Other responses

- `401` — Authorization information is missing or invalid. Provide a valid API token as the `authorization` header, e.g. `authorization:*.*.my-admin-token`.
- `403` — The provided user credentials are valid, but the user does not have the necessary permissions to perform this operation
- `404` — The requested resource was not found.

---

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