---
title: "Remove a sharing grant (library or list)"
method: DELETE
path: "/workspace/grants/{grantId}"
tags: ["workspace"]
---

# Remove a sharing grant (library or list)

`DELETE /workspace/grants/{grantId}`

## Request

- Base URL: `https://api.onplana.com/api`
- URL: `https://api.onplana.com/api/workspace/grants/{grantId}`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

resourceType-agnostic: resolves the owning library or list from the grant row, then MANAGE-gates the caller.

## Path parameters

- `grantId` string, required

## Headers

- `X-Organization-Id` string, required

## Response `200`

Grant removed

## Other responses

- `400`: Validation error
- `401`: Unauthorized - missing or invalid JWT
- `403`: Forbidden - insufficient role

---

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