public async Task Destroy(Storable storable) { var container = await MakeContainer(storable.Directory); var cloudBlockBlob = container.GetBlockBlobReference(storable.FileName); await cloudBlockBlob.DeleteIfExistsAsync(); }
public async Task Destroy(Storable storable) { await Task.Run(() => { var absolutePath = MakeAbsolutePath(storable.DirectoryWithFileName); if (File.Exists(absolutePath)) { File.Delete(absolutePath); } }); }