---
title: "AsposeLLMApi.ForceCacheCleanup"
url: "https://reference.aspose.com/llm/net/aspose.llm/asposellmapi/forcecachecleanup/"
product: "Aspose.LLM for .NET API Reference"
description: "AsposeLLMApi method. Forces cleanup of the current chat session cache using the specified strategy"
---

## AsposeLLMApi.ForceCacheCleanup method

Forces cleanup of the current chat session cache using the specified strategy.

```csharp
public void ForceCacheCleanup(
    CacheCleanupStrategy strategy = CacheCleanupStrategy.KeepSystemPromptOnly)
```

| Parameter | Type | Description |
| --- | --- | --- |
| strategy | CacheCleanupStrategy | The strategy to use for cache cleanup. Default is KeepSystemPromptOnly. |

### See Also

* class [AsposeLLMApi](../)
* namespace [Aspose.LLM](../../asposellmapi/)
* assembly [Aspose.LLM](../../../)


