---
title: "Remove document View permissions from a user or other entity."
method: DELETE
path: "/documents/{did}/share/{entityId}"
tags: ["Document"]
---

# Remove document View permissions from a user or other entity.

`DELETE /documents/{did}/share/{entityId}`

Specify the ID of the entity to unshare with in the `eid` field, and specify the type of entity being identified in the `entryType` field. For example, to unshare a document with a company, you would use `1` as the `entryType` value and the `companyId` as the `entityId`.

## Path parameters

- `did` string, required
- `entityId` string, required

## Query parameters

- `entryType` integer

## Response `default`

default response

---

[API](https://skmtc.dev/onshape/apis/onshape-rest-api.md) · [All operations](https://skmtc.dev/onshape/apis/onshape-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/onshape/onshape-rest-api/revisions/5fa7a57a26dd/schema)
