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

# Delete organization invitations

## Paths

- `DELETE` `/organizations/{organization_id}/invitations/{invitation_tokens}`

#### Path parameters

- `organization_id` (string) — required
  Identifier for the Organization
- `invitation_tokens` (string) — required
  CSV list of Invitation tokens

## Description

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

## Authentication

- Basic: `Authorization: Basic <credentials>`
- Api key: `Authorization: <value>`

## Responses

#### `200`

Organization invitations deleted successfully

`application/json`

Type: `object`

#### `400`

No valid invitation token was supplied. (code: `root.invalid_data`)

`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

#### `404`

* Organization not found. (code: `organization.not_found`)
* Invitation not found. (code: `organization.invitation_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}/invitations/${INVITATION_TOKENS}" \
  -u "${USERNAME}:${PASSWORD}"
```

