protected override void DeletePictureThumbs(Picture picture) { string str = $"{picture.Id.ToString("0000000")}"; using (IEnumerator<Microsoft.WindowsAzure.StorageClient.IListBlobItem> enumerator = cloudBlobContainer_0.ListBlobs(str, false, 0, null, null).GetEnumerator()) { while (enumerator.MoveNext()) { ((Microsoft.WindowsAzure.StorageClient.CloudBlockBlob)enumerator.Current).Delete(0, null, null, null); } } }
ListBlobs to ListBlobsSegmented and Delete to DeleteIfExists
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)