---
title: "Remove a document from a deployment policy"
method: DELETE
path: "/v2/deploymentPolicies/{deploymentPolicyId}/files/{inodeId}"
tags: ["Deployment policies"]
---

# Remove a document from a deployment policy

`DELETE /v2/deploymentPolicies/{deploymentPolicyId}/files/{inodeId}`

## Request

- Base URL: `https://api.sigmacomputing.com`
- URL: `https://api.sigmacomputing.com/v2/deploymentPolicies/{deploymentPolicyId}/files/{inodeId}`
- Auth: HTTP bearer

Remove a document from a deployment policy.

### Usage notes
- Retrieve the `deploymentPolicyId` from the [/v2/deploymentPolicies](/reference/list-deployments) endpoint.
- To remove workbooks from a deployment policy, retrieve the relevant `workbookId` from the [/v2/workbooks](/reference/list-workbooks) endpoint.
- To remove data models from a deployment policy, retrieve the relevant `dataModelId` from the [/v2/datamodels](/reference/list-data-models) endpoint.
- To remove reports from a deployment policy, retrieve the relevant `reportId` from the [/v2/reports](/reference/list-reports) endpoint.
- To remove folders from a deployment policy, retrieve the relevant folder ID from the [/v2/files](/reference/list-files) endpoint and review the `id` field in the response for files with a `type` of `folder`.

### Usage scenarios
- Revoke access to outdated documents from tenant organizations.

## Path parameters

- `deploymentPolicyId` string, required
- `inodeId` string, required

## Response `200`

The response body.

- DeploymentPoliciesRemoveInodesFromDeploymentResponse200

---

[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)
