Programmatically delete files from blob storage after x number of days

142 Views Asked by At

I want to delete files from Azure Blob Storage after X number of days automatically. I don't want to create a Azure function for this. I want to do this programmatically and not through policy.

At the time of uploading the file, I want to set a rule/policy programmatically instructing to delete the files after X number of days.

I also tried setting meta data (RetensionDays) but it did not helped.

0

There are 0 best solutions below