I would like to automatically delete the blob in Azure Storage after certain days via code in C#. There are two options to do this:
Write your own timer trigger apps, iterate over the blobs whose last modified date is over X number of days and delete the blob.
Use Lifecycle management option available in Azure portal where we can add our rules to delete the blob in simple way
Is there any other way or any property available where we could implement the same functionality (set the expiry time/date while uploading the blob in azure storage) through the code in C#?
Any leads would be helpful.