---
title: Delete Invite
url: https://platform.claude.com/docs/en/api/java/organization/invites/delete
---

# Delete Invite

`InviteDeleteResponse organization().invites().delete(params = InviteDeleteParams.none(), requestOptions = RequestOptions.none())`

**DELETE** `/v1/organizations/invites/{invite_id}`

Delete a pending invite.

## Parameters

- `InviteDeleteParams params`

  - `Optional<String> inviteId` (path parameter)

    ID of the Invite.

## Returns

- `class InviteDeleteResponse`

  - `JsonValue type = "invite_deleted"`

    Deleted object type.

    For Invites, this is always `"invite_deleted"`.

  - `String id`

    ID of the Invite.

## Example

```java
package com.anthropic.example;

import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.organization.invites.InviteDeleteParams;
import com.anthropic.models.organization.invites.InviteDeleteResponse;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        AnthropicClient client = AnthropicOkHttpClient.fromEnv();

        InviteDeleteResponse invite = client.organization().invites().delete("invite_id");
    }
}
```

### Response (200)

```json
{
  "id": "invite_015gWxCN9Hfg2QhZwTK7Mdeu",
  "type": "invite_deleted"
}
```
