# PrimaryBasedLogViewAdaptor&lt;TLogView, TLogEntry, TSubmissionEntry&gt;.ClearPrimaryLogAsync(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/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.EventSourcing/Common/PrimaryBasedLogViewAdaptor.cs#L93)

```csharp
protected virtual Task PrimaryBasedLogViewAdaptor<TLogView, TLogEntry, ClearPrimaryLogAsync(CancellationToken cancellationToken)
```

Clear the persisted log stream completely.

### Parameters

- `cancellationToken` (`CancellationToken`)
