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


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

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:

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