---
title: "Unassign User"
method: DELETE
path: "/management/v1/projects/{projectId}/users/{userId}"
tags: ["Management"]
---

# Unassign User

`DELETE /management/v1/projects/{projectId}/users/{userId}`

Unassigns the user from the project.
If the user is currently logged in, they are automatically logged out. If the user is assigned to only one project, they cannot be unassigned from that project.

## Response `204`

Returns no content if the user has been successfully unnassigned.

## Other responses

- `400` — Returns an error if the user is not assigned to the project.
- `401` — Returns an error if an invalid token was provided.
- `402` — Returns an error if the current plan does not include the Management API feature.
- `404` — Returns an error when a resource could not be found.

---

[API](https://skmtc.net/voucherifyio/apis/voucherify-api-async-actions.md) · [All operations](https://skmtc.net/voucherifyio/apis/voucherify-api-async-actions/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/voucherifyio/voucherify-api-async-actions/revisions/4982266e0494/schema)
