---
type: api
title: Delete organization memberships
description: Deletes one or more organization memberships. Currently unavailable in self-hosted ECE.
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/cloud-enterprise/v4/operation/operation-delete-organization-memberships
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/cloud-enterprise/v4/operation/operation-delete-organization-memberships
products:
  - Elastic Cloud Enterprise
---

# Delete organization memberships

Authentication: required

## Paths

- `DELETE` `/organizations/{organization_id}/members/{user_ids}`

#### Path parameters

- `organization_id` (string) — required
  Identifier for the Organization
- `user_ids` (string) — required
  CSV list of User identifiers

## Description

Deletes one or more organization memberships. Currently unavailable in self-hosted ECE.

## Query string parameters

- `force` (boolean · default: false) — optional
  Whether or not to force the removal of Org memberships (effective only for Platform Admins)

## Responses

#### `200`

Organization membership deleted successfully

`application/json`

Type: `object`

#### `404`

* User not found. (code: `user.not_found`)
* Organization not found. (code: `organization.not_found`)
* Organization membership not found. (code: `organization.membership_not_found`)

`application/json`

- `errors` (object[])
  A list of errors that occurred in the failing request
  - `code` (string)
    A structured code representing the error type that occurred
  - `message` (string)
    A human readable message describing the error that occurred
  - `fields` (string[])
    If the error can be tied to a specific field or fields in the user request, this lists those fields
##### Response headers

- `x-cloud-error-codes` (enum)
  The error codes associated with the response

## Code examples

#### curl

```curl
curl -X DELETE "${API_URL}/organizations/${ORGANIZATION_ID}/members/${USER_IDS}" \
  -u "${USERNAME}:${PASSWORD}"
```

## Response examples

#### 200

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{}
```

#### 404

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "errors": [
    {
      "code": "string",
      "message": "string",
      "fields": [
        "string"
      ]
    }
  ]
}
```

