# deleteUpload

```graphql
mutation DeleteUpload($input: DeleteUploadInput!) {
  deleteUpload(input: $input) {
    ok
  }
}
```

Soft-delete an upload so it no longer lists or downloads. Requires project.uploads.write; API keys also need delete scope.

## Arguments

| Name                     | Type               | Required | Description                                                                                                                                                                                    |
| ------------------------ | ------------------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `input`                  | DeleteUploadInput! | Yes      |                                                                                                                                                                                                |
| `input.projectReference` | String             |          | Project UUID, slug or configured domain. Omission does not select the context project.                                                                                                         |
| `input.uploadReference`  | String             |          | Upload path to soft-delete. Requires upload write and path edit access; API keys also need delete scope. Restoration requires the deleted record to exist; no deletion-age cutoff is enforced. |
| `input.filePath`         | String             |          | Another spelling of uploadReference. Send one of the two.                                                                                                                                      |

## Variables

```json
{
  "input": {}
}
```

## Responses

| Status | Description                                    |
| ------ | ---------------------------------------------- |
| 200    | The DeleteUploadPayload! in data.deleteUpload. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "mutation DeleteUpload($input: DeleteUploadInput!) {\n  deleteUpload(input: $input) {\n    ok\n  }\n}",
  "variables": {
    "input": {}
  }
}'
```

## Example response

```json
{
  "data": {
    "deleteUpload": {
      "ok": false
    }
  }
}
```
