# Delete cache entries

Tool: `veryfront__delete_cache_entries`

Delete every cache entry matching a glob pattern. Pattern \* clears the project cache. Requires project.cache.write; API keys also need delete scope.

## Arguments

| Name                | Type                                   | Required | Description                                                                     |
| ------------------- | -------------------------------------- | -------- | ------------------------------------------------------------------------------- |
| `project_reference` | string                                 |          | Project ID or slug; optional on a project-scoped connection                     |
| `pattern`           | string · min length 1 · max length 512 | Yes      | Glob pattern over keys. Required; `*` deletes every entry in the project cache. |
| `confirm`           | boolean                                | Yes      | Must be true to confirm the deletion                                            |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__delete_cache_entries",
    "arguments": {
      "pattern": "a",
      "confirm": true
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"ok\":true}"
      }
    ],
    "structuredContent": {
      "ok": true
    }
  }
}
```
