private async Task DeleteAdBlobsAsync(Ad ad) { if (!string.IsNullOrWhiteSpace(ad.ImageURL)) { Trace.TraceInformation("Deleting image blob {0}", ad.ImageURL); CloudBlockBlob blobToDelete = imagesBlobContainer.GetBlockBlobReference(ad.GetImageFileName()); await blobToDelete.DeleteAsync(); } if (!string.IsNullOrWhiteSpace(ad.ThumbnailURL)) { Trace.TraceInformation("Deleting thumbnail blob {0}", ad.ThumbnailURL); CloudBlockBlob blobToDelete = imagesBlobContainer.GetBlockBlobReference(ad.GetThumbnailFileName()); await blobToDelete.DeleteAsync(); } }