# IDurableLog&lt;T&gt;.TrimBefore(long)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurablelog-1/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurablelog-1/methods/)

```csharp
public abstract void TrimBefore(long sequence)
```

Discards entries with sequence numbers lower than `sequence`.

### Parameters

- `sequence` (`long`): The sequence number of the first entry to retain.

### Exceptions

- `System.ArgumentOutOfRangeException`: `sequence` is negative or greater than `Orleans.Durable.Journaling.IDurableLog-1.NextSequence`.
