---
title: "Delete a grant for a connection"
method: DELETE
path: "/v2/connections/{connectionId}/grants/{grantId}"
tags: ["Connections"]
---

# Delete a grant for a connection

`DELETE /v2/connections/{connectionId}/grants/{grantId}`

## Request

- Base URL: `https://api.sigmacomputing.com`
- URL: `https://api.sigmacomputing.com/v2/connections/{connectionId}/grants/{grantId}`
- Auth: HTTP bearer

Deletes a specific permission granted on a specific connection.

  ### Usage notes
  - Retrieve the **connectionId** by calling the [/v2/connections](https://help.sigmacomputing.com/reference/list-connections) endpoint.

  ### Usage scenarios
  - **Principle of least privilege**: Reduce the permissions granted to specific users and teams on a connection to only what is needed.
  - **User offboarding**: Remove connection permissions granted to a user that will be deactivated.

## Path parameters

- `connectionId` string, required
- `grantId` string, required

## Response `200`

The response body.

- ConnectionsDeleteConnectionGrantResponse200

---

[API](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api.md) - [All operations](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/revisions/fb6036208c49?raw)
