> For the complete documentation index, see [llms.txt](https://docs.ellipsis-drive.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ellipsis-drive.com/developers/api-v3/path-raster/timestamps/upload-raster/trash-upload.md).

# Trash upload

| **Description** | Trashes or recovers a given upload.                                   |
| --------------- | --------------------------------------------------------------------- |
| **Endpoint**    | `/path/{pathId}/raster/timestamp/{timestampId}/file/{fileId}/trashed` |
| **Method**      | PUT                                                                   |

## Access Level Rules

| **Minimum Access Level** | edit+ |
| ------------------------ | ----- |

## Processing Units

| **Minimum processing units** | 1 |
| ---------------------------- | - |

## Parameters

| Name          | Description                                              | Required | Default       |
| ------------- | -------------------------------------------------------- | -------- | ------------- |
| `pathId`      | The id of the raster layer.                              | true     |               |
| `timestampId` | The id of the timestamp that the upload belongs to.      | true     |               |
| `fileId`      | The id of the upload to trash/recover.                   | true     |               |
| `trashed`     | Boolean whether the file should be trashed or recovered. | false    | Default true. |
