---
title: "Clear metrics cache"
method: POST
path: "/api/metrics/clear-cache"
tags: ["Admin - Metrics"]
---

# Clear metrics cache

`POST /api/metrics/clear-cache`

Clears cached metrics data. By default, clears history cache. Use request body parameters to selectively clear specific cache types.

## Request body

- object
  - `limit` integer — Clear cache for specific history limit (e.g., 15, 30). If not provided, clears default history cache.
  - `clear_stats` boolean — Clear stats cache
  - `clear_system_info` boolean — Clear system info cache
  - `clear_service_history` boolean — Clear service history cache

## Response `200`

Cache cleared successfully

- object
  - `message` string

## Other responses

- `500` — Server error

---

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