---
title: "Remove User From Websites"
method: DELETE
path: "/api/v1/users/{user_id}/websites"
tags: ["Team Management"]
---

# Remove User From Websites

`DELETE /api/v1/users/{user_id}/websites`

Batch-removes a user's explicit website memberships within your organization. Pass the website IDs as a comma-separated list in the `website_ids` query parameter (at most 100). Requires a global API key. Idempotent: websites where the user has no explicit membership are reported with status `not_a_member` rather than failing the request, so re-calling is safe. Organization-level access is not affected — this only removes explicit `website_members` rows.

## Query parameters

- `website_ids` string, required

## Response `200`

Per-website removal results

- object
  - `success` true, required
  - `results` object[], required
    - `website_id` string, required
    - `status` 'removed' | 'not_a_member', required

## Other responses

- `400` — Bad request - Invalid user ID or website_ids
- `401` — Unauthorized - Invalid or missing API key
- `403` — Forbidden - Global API key required
- `404` — Not found - No AthenaHQ user exists for this user_id
- `429` — Too many requests - Rate limit exceeded. Retry after a short delay.
- `500` — Internal server error

---

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