public Task Clear(LoadArgs args) { var archives = GetArchives(args); var tasks = new List <Task>(); foreach (var archive in archives) { var filePath = CreateFilePath(archive.ArchiveId); tasks.Add(_asyncFile.Delete(filePath)); } return(Task.WhenAll(tasks)); }