# deleteProjectResource

```graphql
mutation DeleteProjectResource($input: DeleteProjectResourceInput!) {
  deleteProjectResource(input: $input) {
    ok
  }
}
```

Delete the source file of a project resource that is no longer needed; returns an acknowledgement. Requires project.files.write.

## Arguments

| Name                     | Type                        | Required | Description |
| ------------------------ | --------------------------- | -------- | ----------- |
| `input`                  | DeleteProjectResourceInput! | Yes      |             |
| `input.projectReference` | String                      |          |             |
| `input.resourceId`       | String!                     | Yes      |             |
| `input.sourceTargetKind` | String                      |          |             |
| `input.targetBranchId`   | ID                          |          |             |

## Variables

```json
{
  "input": {
    "resourceId": "string"
  }
}
```

## Responses

| Status | Description                                                       |
| ------ | ----------------------------------------------------------------- |
| 200    | The DeleteProjectPrimitivePayload! in data.deleteProjectResource. |

## 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 DeleteProjectResource($input: DeleteProjectResourceInput!) {\n  deleteProjectResource(input: $input) {\n    ok\n  }\n}",
  "variables": {
    "input": {
      "resourceId": "string"
    }
  }
}'
```

## Example response

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