---
title: "Clear the stats cache."
method: DELETE
path: "/api/v1/stats/cache"
---

# Clear the stats cache.

`DELETE /api/v1/stats/cache`

Query Parameters:
- pattern: Optional pattern to match cache keys (e.g., 'summary', 'trends')

Allowed patterns: summary, trends, geographic, tasks, executions, users, activity

Example Response (success):
{
    "data": {
        "success": true,
        "message": "Cache cleared successfully"
    }
}

Example Response (with pattern):
{
    "data": {
        "success": true,
        "message": "Cache cleared successfully for pattern: summary"
    }
}

Returns:
    JSON response indicating success or failure of cache clearing operation

## Response `200`

Success

- object

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/trends/apis/trends-earth-api.md) · [All operations](https://skmtc.dev/trends/apis/trends-earth-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/trends/trends-earth-api/revisions/6bdbc0b84666/schema)
