Delete a grant
Delete a grant by grant ID.
### Usage notes
Depending on the grant object that you want to delete, you can retrieve the grantId in different ways:
- For most documents, you can retrieve the **grantId** by calling the [/v2/grants](https://help.sigmacomputing.com/reference/list-grants) endpoint with the **inodeId** for the document. For example, use the **workbookId** as the **inodeId**.
- For a dataset (deprecated), you can also retrieve the **grantId** by calling the [/v2/datasets/{datasetId}/grants](https://help.sigmacomputing.com/reference/list-dataset-grants) endpoint.
- For a connection path, you can retrieve the **grantId** by calling the [/v2/connections/paths/{connectionPathId}/grants](https://help.sigmacomputing.com/reference/list-connection-path-grants) endpoint.
### Usage scenarios
- **Principle of least privilege**: Revoke unnecessary privileges on a document by removing the grant.
Authentication
AuthorizationBearer
OAuth authentication of the form <token>.
Path parameters
grantId
Response
The response body.
grantId
The unique identifier of the grant
inodeId
The unique identifier of the inode
organizationId
The unique identifier of the organization
memberId
The unique identifier of the member
teamId
The unique identifier of the team
permission
The permission granted to the member
createdBy
The identifier of the user who created this grant
updatedBy
The identifier of the user or process that last updated this grant
createdAt
When the grant was created
updatedAt
When the grant was last updated
inodeType

