# deleteExternalFile

```graphql
mutation DeleteExternalFile($input: ExternalStorageFileInput!) {
  deleteExternalFile(input: $input) {
    ok
    status
  }
}
```

Delete external file. Requires project.integrations.connect; API keys also need delete scope.

## Arguments

| Name                     | Type                      | Required | Description                                                                                                                                                  |
| ------------------------ | ------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `input`                  | ExternalStorageFileInput! | Yes      |                                                                                                                                                              |
| `input.provider`         | String!                   | Yes      | Storage provider accessed through the caller's own personal connection. A human caller is required; agent, run, and service-account credentials are refused. |
| `input.projectReference` | String                    |          | Project ID or slug. Access is checked for the selected operation.                                                                                            |
| `input.fileId`           | String!                   | Yes      |                                                                                                                                                              |

## Variables

```json
{
  "input": {
    "provider": "string",
    "fileId": "string"
  }
}
```

## Responses

| Status | Description                                            |
| ------ | ------------------------------------------------------ |
| 200    | The ExternalStorageDelete! in data.deleteExternalFile. |

## 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 DeleteExternalFile($input: ExternalStorageFileInput!) {\n  deleteExternalFile(input: $input) {\n    ok\n    status\n  }\n}",
  "variables": {
    "input": {
      "provider": "string",
      "fileId": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "deleteExternalFile": {
      "ok": false,
      "status": "string"
    }
  }
}
```
