---
title: "Cancel or decline a team request"
method: DELETE
path: "/v1/teams/{team_id}/team_requests/{team_request_id}"
tags: ["Team Requests"]
---

# Cancel or decline a team request

`DELETE /v1/teams/{team_id}/team_requests/{team_request_id}`

Cancel or decline a team request.

If you are using a personal access token, you must have "can manage" permission on the team or be a workspace manager, or
be the member who created the request being cancelled.

## Path parameters

- `team_id` integer, required
- `team_request_id` integer, required

## Query parameters

- `send_email` boolean

## Response `204`

Team request deleted

## Other responses

- `401` — Invalid API key
- `403` — Permission denied
- `404` — Not found
- `503` — API under maintenance

---

[API](https://skmtc.net/gitguardian/apis/gitguardian-api.md) · [All operations](https://skmtc.net/gitguardian/apis/gitguardian-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitguardian/gitguardian-api/revisions/511b067cdcb1/schema)
