# Delete upload grant

```http
DELETE /projects/{project_reference}/uploads/grants/{upload_path}/{user_id}
```

Revoke one user's grant on an upload or folder. Requires project.uploads.admin; API keys also need delete scope.

## Parameters

| Name                | In   | Required | Description                                                                                                                                                                     |
| ------------------- | ---- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference` | path | Yes      | Project slug, UUID, or domain that identifies the project.                                                                                                                      |
| `upload_path`       | path | Yes      | Private path from which the recipient grant is removed. Requires path administration. Upload UUID or double-URL-encoded project-relative file path or applicable folder prefix. |
| `user_id`           | path | Yes      | Recipient user UUID whose grant is revoked                                                                                                                                      |

## Responses

| Status | Description                                                                 |
| ------ | --------------------------------------------------------------------------- |
| 200    | Grant removed.                                                              |
| 400    | Invalid recipient UUID or path encoding, or no applicable visibility target |
| 401    | Authentication is required                                                  |
| 403    | Admin access required. API keys also require delete scope.                  |
| 404    | Project or grant not found                                                  |
| 500    | Server error                                                                |
