public async Task Clear()
{
await Initialize();
if (_terminateSource.IsCancellationRequested)
return;
_terminateSource.Cancel();
await Task.Delay(1000);
await _comments.Clear();
await _links.Clear();
_blobStoreDb.Dispose();
await PurgeDB(_historyDb, _historyFileName);
await PurgeDB(_actionsDb, _actionsFileName);
await PurgeDB(_imageAPIDb, _imageApiFileName);
await PurgeDB(_imageDb, _imageFileName);
_terminateSource = new CancellationTokenSource();
await ReInitialize();
}
private async Task PurgeDB(DB db, string filename)