---
title: "Cancel an organization invitation"
method: DELETE
path: "/orgs/{org}/invitations/{invitation_id}"
tags: ["orgs"]
---

# Cancel an organization invitation

`DELETE /orgs/{org}/invitations/{invitation_id}`

Cancel an organization invitation. In order to cancel an organization invitation, the authenticated user must be an organization owner.

This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications).

## Path parameters

- `org` string, required
- `invitation_id` integer, required

## Response `204`

Response

## Other responses

- `404` — Resource not found
- `422` — Validation failed, or the endpoint has been spammed.

---

[API](https://skmtc.net/github/apis/rest-api.md) · [All operations](https://skmtc.net/github/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/rest-api/versions/80850db290cd/schema)
