Claude Platform Docs

Delete Invite

$client->beta->organization->invites->delete(string inviteID): InviteDeleteResponse
DELETE/v1/organizations/invites/{invite_id}

Delete a pending invite.

Parameters
inviteID: string

ID of the Invite.

Returns
class InviteDeleteResponse { $type = 'invite_deleted'; $id; }
"invite_deleted" type

Deleted object type.

For Invites, this is always "invite_deleted".

string id

ID of the Invite.

Delete Invite
<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

$client = new Client(apiKey: 'my-anthropic-api-key');

$invite = $client->beta->organization->invites->delete('invite_id');

var_dump($invite);
Returns Examples
Response 200
{
  "id": "invite_015gWxCN9Hfg2QhZwTK7Mdeu",
  "type": "invite_deleted"
}