---
title: "Delete a Team invite code"
method: DELETE
path: "/v1/teams/{teamId}/invites/{inviteId}"
tags: ["teams"]
---

# Delete a Team invite code

`DELETE /v1/teams/{teamId}/invites/{inviteId}`

## Request

- Base URL: `https://api.vercel.com`
- URL: `https://api.vercel.com/v1/teams/{teamId}/invites/{inviteId}`
- Auth: HTTP bearer

Delete an active Team invite code.

## Path parameters

- `inviteId` string, required: The Team invite code ID.
- `teamId` string, required: The Team identifier to perform the request on behalf of.

## Response `200`

Successfully deleted Team invite code.

- object
  - `id` string, required: ID of the team.

## Other responses

- `400`: One of the provided values in the request query is invalid.
- `401`: The request is not authorized.
- `403`: You do not have permission to access this resource. Invite managed by directory sync Not authorized to access this team.
- `404`: Team invite code not found.
- `410`

## Changes

- **2026-07-21** `2ae10ee9d21c`: 1 info
  - added the non-success response with the status `410`
- **2026-01-22** `c12186034433`: 1 breaking
  - added the new path request parameter `teamId`
- **2025-03-19** `37b482c58c92`: 1 info
  - added the non-success response with the status `401`

[Operation history](https://skmtc.dev/vercel/apis/vercel-api/changes/v1/teams/:teamId/invites/:inviteId/delete.md)

---

[API](https://skmtc.dev/vercel/apis/vercel-api.md) - [All operations](https://skmtc.dev/vercel/apis/vercel-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vercel/apis/vercel-api/revisions/60686c0e1f6a?raw)
