# Delete cache entry

```http
DELETE /projects/{project_reference}/cache/entries/{key}
```

Deletes one cache entry. Idempotent: an absent key returns status absent. Requires project.cache.write; API keys also need delete scope.

## Parameters

| Name                | In   | Required | Description                                                                                                                         |
| ------------------- | ---- | -------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference` | path | Yes      | Project slug, UUID, or domain that identifies the project.                                                                          |
| `key`               | path | Yes      | Cache key, 1 to 512 characters: letters, digits, underscore, colon, dot, hyphen and slash. No "." or ".." segments between slashes. |

## Responses

| Status | Description                                                  |
| ------ | ------------------------------------------------------------ |
| 200    | The entry is gone: deleted, or no entry existed for the key. |
| 400    | Bad request                                                  |
| 401    | Unauthorized                                                 |
| 403    | Forbidden. API keys also require delete scope.               |
| 404    | Not found                                                    |
| 500    | Server error                                                 |
