---
title: "Remove a grant"
method: DELETE
path: "/api/v1/folders/{id}/grants/{grant_id}"
tags: ["Folders"]
---

# Remove a grant

`DELETE /api/v1/folders/{id}/grants/{grant_id}`

## Request

- Base URL: `https://saltapp.ai`
- URL: `https://saltapp.ai/api/v1/folders/{id}/grants/{grant_id}`
- Auth: one of:
  - API key in header `api-key`
  - OAuth 2 (authorization code, authorization URL `https://saltapp.ai/oauth2/authorize`, token URL `https://saltapp.ai/api/oauth2/token`, scopes: `chat`)

Owner or admin. Removes membership too, if any. Says nothing about copies already read.

## Path parameters

- `id` string, required
- `grant_id` string, required

## Response `200`

Removed.

- object
  - `id` string

## Other responses

- `401`: Missing or invalid credentials.
- `403`: Forbidden
- `404`: Not found.

---

[API](https://skmtc.dev/saltapp/apis/salt-agent-api.md) · [All operations](https://skmtc.dev/saltapp/apis/salt-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/saltapp/apis/salt-agent-api/revisions/a3910bbaf26a?raw)
