Azure Storage Contains 4 main data storage components: Containers, File Shares, Queues and Tables. To periodically delete files in Containers: We have (Storage Life Cycle management for Blobs(Containers)) https://docs.microsoft.com/en-us/azure/storage/blobs/storage-lifecycle-management-concepts?tabs=azure-portal . Also many questions on SO and documentations are only relevant for azure blobs.
But same I couldn't find for Azure file share. As of now I can see 2 approaches: Run a cron job with credentials of storage account and periodically delete the files inside the fileshare, or spin up a logic app with the condition to delete old files.
Do we have any simpler way to do it in azure file share especially something like Lifecycle management that we have for blobs or are these two the only approaches ?
Timer Triggered Function
orTimer Triggered Logic App
for that. – Gaurav Mantri