in SamplesV1/ADFCustomActivityRunner/CustomActivityRunner/BlobUtilities.cs [92:109]
public void RemoveFilesFromBlob(string fileName = null)
{
var container = GetCloudBlobContainer();
var blobs = container.ListBlobs();
// Optionally delete just a single file
if (fileName != null)
{
blobs = container.ListBlobs().Where(x => x.Uri.ToString().Contains(fileName));
}
foreach (CloudBlockBlob blob in blobs)
{
logger.Write($"Removing blob '{blob.Name}' from storage '{folderPath}'");
blob.DeleteIfExists();
}
}