# Delete cache entries

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

Deletes every cache entry whose key matches the required glob pattern. Pattern `*` clears the project cache. 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.                      |
| `pattern`           | query | Yes      | Glob pattern over keys. Required; `*` deletes every entry in the project cache. |

## Responses

| Status | Description                                    |
| ------ | ---------------------------------------------- |
| 200    | Every entry matching the pattern was deleted.  |
| 400    | Bad request                                    |
| 401    | Unauthorized                                   |
| 403    | Forbidden. API keys also require delete scope. |
| 404    | Not found                                      |
| 500    | Server error                                   |
