Using Logic Apps to delete files older than X number of days from Azure Blob Storage

MVP

Recently I have had to the need to clean up some of my blob storage and keep it clean. This can be done using an Azure PowerShell Runbook, but I wanted to see if it could be done with little to no code. Azure Logic Apps are perfect for this. You can create some powerful stuff with Logic Apps. So in this article I am going to show you how to remove files from Azure Blob Storage after X number of days using Logic Apps.

 

You can read more at https://pixelrobots.co.uk/2018/10/using-logic-apps-to-delete-files-older-than-x-number-of-days-from-...

3 Replies

@Richard Hooper The "For Each" action is now no longer available, can you help with a solution?

 

- Edit, it is available just doesn't appear when you search "For Each", it can be found under 'Control'

@Saqib-s, meanwhile, you can also look at the Lifecycle Management feature of Azure Storage, which is much simpler to implement and manage:

 

https://docs.microsoft.com/en-us/azure/storage/blobs/storage-lifecycle-management-concepts?tabs=azur...

Thanks, we did go this route, but unfortunately Life Cycle management doesn't work for Page Blobs.