# revokeOrganizationInvitation()

Revokes an [`OrganizationInvitation`](https://clerk.com/docs/reference/backend/types/backend-organization-invitation.md) from a user for the specified Organization.

```ts
function revokeOrganizationInvitation(
  params: RevokeOrganizationInvitationParams,
): Promise<OrganizationInvitation>
```

## `RevokeOrganizationInvitationParams`

| Name             | Type   | Description                                              |
| ---------------- | ------ | -------------------------------------------------------- |
| organizationId   | string | The ID of the Organization the user was invited to.      |
| invitationId     | string | The ID of the invitation to be revoked.                  |
| requestingUserId | string | The ID of the user revoking the Organization invitation. |

## Example

> Using `clerkClient` varies based on the SDK you're using. Refer to the [overview](https://clerk.com/docs/reference/backend/overview.md) for usage details, including guidance on [how to access the `userId` and other properties](https://clerk.com/docs/reference/backend/overview.md#example-get-the-user-id-and-other-properties).

```tsx
const organizationId = 'org_123'

const invitationId = 'orginv_123'

const requestingUserId = 'user_123'

const response = await clerkClient.organizations.revokeOrganizationInvitation({
  organizationId,
  invitationId,
  requestingUserId,
})
```

## Backend API (BAPI) endpoint

This method in the SDK is a wrapper around the BAPI endpoint `POST/organizations/{organization_id}/invitations/{invitation_id}/revoke`. See the [BAPI reference](https://clerk.com/docs/reference/backend-api/tag/organization-invitations/POST/organizations/%7Borganization_id%7D/invitations/%7Binvitation_id%7D/revoke){{ target: '_blank' }} for more information.

---

## Sitemap

[Overview of all docs pages](https://clerk.com/docs/llms.txt)
