> 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/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":"Fabric API","version":"1.0.0"},"tags":[{"name":"Cache Management","description":"Cache management operations"}],"servers":[{"url":"https://{apiId}.execute-api.{region}.amazonaws.com/{environment}","description":"AWS API Gateway","variables":{"apiId":{"default":"api-id","description":"API Gateway ID"},"region":{"default":"us-east-2","description":"AWS Region"},"environment":{"default":"dev","enum":["dev","prod"],"description":"Environment"}}}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key for authentication"}},"parameters":{"ApiKeyHeader":{"name":"x-api-key","in":"header","description":"API key for authentication","required":true,"schema":{"type":"string"}}},"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"}}}}}},"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"],"parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"}],"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"},"500":{"$ref":"#/components/responses/InternalError"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://knowledgebase.fabricdata.com/insights/api/cache-management.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
