> For the complete documentation index, see [llms.txt](https://knowledgebase.fabricdata.com/insights/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.fabricdata.com/insights/api/origin-insights-new-generation/cache-management.md).

# Cache Management

Cache management operations

## Clear cache entries

> Clear cache entries for insights endpoints. Can clear all cache or specific paths.\
> \
> Use \`all: true\` to clear all cache entries, or provide a \`paths\` array to clear specific endpoints.<br>

```json
{"openapi":"3.0.3","info":{"title":"Insights API","version":"1.0.0"},"tags":[{"name":"Cache Management","description":"Cache management operations"}],"servers":[{"url":"https://{apiId}.execute-api.{region}.amazonaws.com","description":"AWS API Gateway (HTTP API, no stage prefix)","variables":{"apiId":{"default":"wodj3u0w11","description":"API Gateway ID (dev: wodj3u0w11)"},"region":{"default":"us-east-2","description":"AWS Region"}}}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Auth0 access token with audience https://api.origin-insights-new.fabric.com. See the Authentication section."}},"schemas":{"CacheClearRequest":{"type":"object","properties":{"all":{"type":"boolean","description":"Set to true to clear all cache entries"},"paths":{"type":"array","description":"Array of endpoint paths to clear cache for","items":{"type":"string","enum":["/insights/content_pulse/overview/kpis","/insights/content_pulse/overview/platform_assets","/insights/content_pulse/overview/genres","/insights/content_pulse/overview/age","/insights/content_pulse/overview/distribution","/insights/content_pulse/overview/popular","/insights/content_pulse/overview/business_models","/insights/content_pulse/overview/local_productions","/insights/content_pulse/overview/local_contents_by_platform","/insights/content_pulse/content_overlap/kpis","/insights/content_pulse/content_overlap/assets","/insights/content_pulse/content_overlap/historic/kpis","/insights/content_pulse/content_overlap/historic/assets","/insights/content_pulse/title_overview/title_data","/insights/content_pulse/title_overview/title_external_ids","/insights/content_pulse/title_overview/presence","/insights/content_pulse/title_overview/distribution_history","/insights/content_pulse/release_by_package/svod","/insights/content_pulse/catalog","/insights/content_pulse/genre_analysis/genre_count","/insights/content_pulse/genre_analysis/genre_combination","/insights/content_pulse/genre_analysis/historic/genre_count","/insights/content_pulse/genre_analysis/historic/genre_combination","/insights/content_pulse/awards/genres","/insights/meta/presence_country","/insights/meta/presence_platforms","/insights/content_pulse/meta/award_names","/insights/content_pulse/price_evolution"]}}}},"CacheClearResponse":{"type":"object","properties":{"message":{"type":"string"},"deleted":{"type":"integer","description":"Number of cache entries deleted"},"success":{"type":"boolean"},"paths":{"type":"array","description":"Paths that were cleared (only when clearing specific paths)","items":{"type":"string"}}}},"ErrorResponse":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"}}}},"responses":{"BadRequest":{"description":"Bad request - invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Unauthorized":{"description":"Unauthorized - missing or invalid API key","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"Forbidden":{"description":"Request outside the token's authorization claims","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"dimension":{"type":"string","enum":["countries","platforms","products","role"]},"requested":{"type":"array","items":{"type":"string"}},"allowed":{"type":"array","items":{"type":"string"}}}}}}},"InternalError":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"paths":{"/insights/cache":{"delete":{"summary":"Clear cache entries","description":"Clear cache entries for insights endpoints. Can clear all cache or specific paths.\n\nUse `all: true` to clear all cache entries, or provide a `paths` array to clear specific endpoints.\n","operationId":"clearCache","tags":["Cache Management"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CacheClearRequest"}}}},"responses":{"200":{"description":"Cache cleared successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CacheClearResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalError"}}}}}}
```
