---
title: "Remove Users from Repository"
method: POST
path: "/v1/repositories/{repositoryId}/users/remove"
tags: ["Repositories"]
---

# Remove Users from Repository

`POST /v1/repositories/{repositoryId}/users/remove`

## Request

- Base URL: `https://api.lucid.co`
- URL: `https://api.lucid.co/v1/repositories/{repositoryId}/users/remove`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://lucid.app/oauth2/authorize`
    - Token URL: `https://api.lucid.co/oauth2/token` scopes: `repository`
- TypeScript: <https://skmtc.dev/lucid/apis/lucid-rest-api/docs/v1/repositories/:repositoryId/users/remove/post.ts> (a function with typed inputs; its response is checked against the schema)

Removes one or more users from a repository.

## Path parameters

- `repositoryId` string, required: Unique identifier for a repository folder, prefixed with `repo_`

## Request body

- object
  - `users` integer[], required: Array of user IDs to remove from the repository

## Response `204`

No Content. Users have been successfully removed from the repository.

## Other responses

- `403`: Forbidden. Occurs when the user does not have permission to modify the repository.

---

[API](https://skmtc.dev/lucid/apis/lucid-rest-api.md) - [All operations](https://skmtc.dev/lucid/apis/lucid-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lucid/apis/lucid-rest-api/revisions/9c2c917ec59c?raw)
