# PooledQueueCache.RemoveOldestMessage

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.pooledqueuecache/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.pooledqueuecache/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Common/PooledCache/PooledQueueCache.cs#L406-L417)

```csharp
public void RemoveOldestMessage()
```

Remove oldest message in the cache, remove oldest block too if the block is empty
