# deleteUploadFolder

```graphql
mutation DeleteUploadFolder($input: UploadFolderPathInput!) {
  deleteUploadFolder(input: $input) {
    ok
  }
}
```

Delete a folder's visibility settings and child folders and soft-delete every upload under its prefix. Requires project.uploads.write; API keys also need delete scope.

## Arguments

| Name                     | Type                   | Required | Description                                                                                |
| ------------------------ | ---------------------- | -------- | ------------------------------------------------------------------------------------------ |
| `input`                  | UploadFolderPathInput! | Yes      |                                                                                            |
| `input.projectReference` | String                 |          | Project UUID, slug or configured domain. Omission does not select the context project.     |
| `input.folderPath`       | String                 |          | Folder path; a trailing slash is appended when absent. Deletion requires path edit access. |
| `input.path`             | String                 |          | Another spelling of folderPath. Send one of the two.                                       |

## Variables

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

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The UploadFolderDeletion! in data.deleteUploadFolder. |

## 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 DeleteUploadFolder($input: UploadFolderPathInput!) {\n  deleteUploadFolder(input: $input) {\n    ok\n  }\n}",
  "variables": {
    "input": {}
  }
}'
```

## Example response

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