# ILogViewUpdate&lt;TLogEntry&gt;.ClearLogAsync(CancellationToken)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.ilogviewupdate-1/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.ilogviewupdate-1/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.EventSourcing/LogConsistency/ILogViewAdaptor.cs#L126)

```csharp
public virtual Task ClearLogAsync(CancellationToken cancellationToken)
```

Clear the log stream completely. Throws `System.NotSupportedException` if the log stream does not support clearing.

### Parameters

- `cancellationToken` (`CancellationToken`): A cancellation token to cancel the operation.

### Returns

A task that represents the asynchronous clear operation.
