# PrimaryBasedLogViewAdaptor&lt;TLogView, TLogEntry, TSubmissionEntry&gt;.ClearLogAsync(CancellationToken)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.common.primarybasedlogviewadaptor-3/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.common.primarybasedlogviewadaptor-3/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.EventSourcing/Common/PrimaryBasedLogViewAdaptor.cs#L99-L113)

```csharp
public virtual Task PrimaryBasedLogViewAdaptor<TLogView, TLogEntry, 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.
