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.