---
title: "Remove membership of the specified user for defined contract."
method: DELETE
path: "/contracts/{contract_id}/members/{user_id}"
tags: ["contracts"]
---

# Remove membership of the specified user for defined contract.

`DELETE /contracts/{contract_id}/members/{user_id}`

You need have `contracts.membership.edit` permission or to be a user with `TenantAdmin` role to access this resource.

## Path parameters

- `contract_id` string, required
- `user_id` string, required

## Query parameters

- `is_clear_empty_workspaces` true

## Response `204`

No Content

- object

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/elastic/apis/elastic-io-rest-api-documentation-v2.md) · [All operations](https://skmtc.net/elastic/apis/elastic-io-rest-api-documentation-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/elastic-io-rest-api-documentation-v2/revisions/411f9f98c01e/schema)
