# IChatGptCache.RemoveAsync method

Removes from the cache all the message for the given *conversationId*.

```csharp
public Task RemoveAsync(Guid conversationId, CancellationToken cancellationToken = default)
```

| parameter | description |
| --- | --- |
| conversationId | The unique identifier of the conversation. |
| cancellationToken | The token to monitor for cancellation requests. |

## Return Value

The Task corresponding to the asynchronous operation.

## See Also

* interface [IChatGptCache](../IChatGptCache.md)
* namespace [ChatGptNet](../../ChatGptNet.md)

<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll -->
