---
title: "Remove a collaborator from a site"
method: DELETE
path: "/api/v1/sites/{slug}/members/{userId}"
tags: ["Members"]
---

# Remove a collaborator from a site

`DELETE /api/v1/sites/{slug}/members/{userId}`

## Request

- Base URL: `https://api.dotsy.ai`
- URL: `https://api.dotsy.ai/api/v1/sites/{slug}/members/{userId}`
- Auth: HTTP bearer

Takes away one person's access to this site. It does not touch workspace teammates, whose access comes from the workspace. The last explicit site owner can't be removed. Needs the site Owner role.

## Path parameters

- `slug` string, required
- `userId` string, required

## Response `200`

Access was removed.

- object
  - `ok` true, required

## Other responses

- `401`: Missing or invalid credentials.
- `403`: `forbidden_role`: managing a site's people needs the site Owner role.
- `404`: `site_not_found`, or `member_not_found`: that person has no explicit access to this site.
- `409`: `last_owner`: this is the site's only owner. Assign another owner first.

---

[API](https://skmtc.dev/dotsy/apis/dotsy-api.md) · [All operations](https://skmtc.dev/dotsy/apis/dotsy-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dotsy/apis/dotsy-api/revisions/4272ed3b85d7?raw)
