Claude Platform Docs

Delete Invite

InviteDeleteResponse beta().organization().invites().delete(InviteDeleteParamsparams = InviteDeleteParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
DELETE/v1/organizations/invites/{invite_id}

Delete a pending invite.

Parameters
InviteDeleteParams params
Optional<String> inviteId

ID of the Invite.

Returns
class InviteDeleteResponse:
String id

ID of the Invite.

JsonValue type "invite_deleted"constant

Deleted object type.

For Invites, this is always "invite_deleted".

Delete Invite

package com.anthropic.example;

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

public final class Main {
    private Main() {}

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

        InviteDeleteResponse invite = client.beta().organization().invites().delete("invite_id");
    }
}
{
  "id": "invite_015gWxCN9Hfg2QhZwTK7Mdeu",
  "type": "invite_deleted"
}
Returns Examples
{
  "id": "invite_015gWxCN9Hfg2QhZwTK7Mdeu",
  "type": "invite_deleted"
}