Claude Platform Docs

Delete Invite

beta.organization.invites.delete(invite_id) -> InviteDeleteResponse
DELETE/v1/organizations/invites/{invite_id}

Delete a pending invite.

Parameters
invite_id: String

ID of the Invite.

Returns
class InviteDeleteResponse { id, type }
id: String

ID of the Invite.

type: :invite_deleted

Deleted object type.

For Invites, this is always "invite_deleted".

Delete Invite

require "anthropic"

anthropic = Anthropic::Client.new(api_key: "my-anthropic-api-key")

invite = anthropic.beta.organization.invites.delete("invite_id")

puts(invite)
{
  "id": "invite_015gWxCN9Hfg2QhZwTK7Mdeu",
  "type": "invite_deleted"
}
Returns Examples
{
  "id": "invite_015gWxCN9Hfg2QhZwTK7Mdeu",
  "type": "invite_deleted"
}