# deleteProjectFavorite

```graphql
mutation DeleteProjectFavorite($projectReference: ID!) {
  deleteProjectFavorite(projectReference: $projectReference) {
    ok
  }
}
```

Removes the project from the caller's favorites; an absent favorite answers not\_found. Requires project.read; API keys also need delete scope.

## Arguments

| Name               | Type | Required | Description                                                                               |
| ------------------ | ---- | -------- | ----------------------------------------------------------------------------------------- |
| `projectReference` | ID!  | Yes      | Project UUID, slug or domain. An absent favorite is not\_found; the project is unchanged. |

## Variables

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

## Responses

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

## 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 DeleteProjectFavorite($projectReference: ID!) {\n  deleteProjectFavorite(projectReference: $projectReference) {\n    ok\n  }\n}",
  "variables": {
    "projectReference": "string"
  }
}'
```

## Example response

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