Delete Invite
beta.organization.invites.delete(strinvite_id) -> InviteDeleteResponseDELETE/v1/organizations/invites/{invite_id}
Delete Invite
import os
from anthropic import Anthropic
client = Anthropic(
api_key=os.environ.get(
"ANTHROPIC_API_KEY"
), # This is the default and can be omitted
)
invite = client.beta.organization.invites.delete(
"invite_id",
)
print(invite.id){
"id": "invite_015gWxCN9Hfg2QhZwTK7Mdeu",
"type": "invite_deleted"
}Returns Examples
{
"id": "invite_015gWxCN9Hfg2QhZwTK7Mdeu",
"type": "invite_deleted"
}