# deleteCacheEntry

```graphql
mutation DeleteCacheEntry($projectReference: String!, $key: String!) {
  deleteCacheEntry(projectReference: $projectReference, key: $key) {
    ok
  }
}
```

Delete one cache entry, as REST DELETE /projects/{project\_reference}/cache/entries/{key}. Requires project.cache.write; API keys also need delete scope.

## Arguments

| Name               | Type    | Required | Description                     |
| ------------------ | ------- | -------- | ------------------------------- |
| `projectReference` | String! | Yes      | Project UUID or slug.           |
| `key`              | String! | Yes      | Cache key, 1 to 512 characters. |

## Variables

```json
{
  "projectReference": "string",
  "key": "a"
}
```

## Responses

| Status | Description                                       |
| ------ | ------------------------------------------------- |
| 200    | The CacheEntryDeletion! in data.deleteCacheEntry. |

## 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 DeleteCacheEntry($projectReference: String!, $key: String!) {\n  deleteCacheEntry(projectReference: $projectReference, key: $key) {\n    ok\n  }\n}",
  "variables": {
    "projectReference": "string",
    "key": "a"
  }
}'
```

## Example response

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