# deletePrompt

```graphql
mutation DeletePrompt($projectReference: String!, $id: String!) {
  deletePrompt(projectReference: $projectReference, id: $id) {
    ok
  }
}
```

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

## Arguments

| Name               | Type            | Required | Description                                                               |
| ------------------ | --------------- | -------- | ------------------------------------------------------------------------- |
| `projectReference` | String!         | Yes      |                                                                           |
| `id`               | String!         | Yes      | The id of the definition, from its list.                                  |
| `sourceTargetKind` | WriteTargetKind |          | The source to write; default project. One of `project`, `preview_branch`. |
| `targetBranchId`   | ID              |          | Required with the kind preview\_branch.                                   |

## Variables

```json
{
  "projectReference": "string",
  "id": "string"
}
```

## Responses

| Status | Description                                |
| ------ | ------------------------------------------ |
| 200    | The Acknowledgement! in data.deletePrompt. |

## 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 DeletePrompt($projectReference: String!, $id: String!) {\n  deletePrompt(projectReference: $projectReference, id: $id) {\n    ok\n  }\n}",
  "variables": {
    "projectReference": "string",
    "id": "string"
  }
}'
```

## Example response

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