Hello prmanhas-MSFT,
Welcome to Microsoft Q&A Forum. Thanks for posting your query here!
Yes, you can use Azure Blob Storage Lifecycle Management to automatically delete blobs (files) after a certain period of time. This can be done without any code changes.
Here's how you can configure Lifecycle Management to delete blobs after 30 days:
Open the Azure portal and navigate to your storage account.
Click on "Lifecycle Management" under the "Blob service" section.
Click on "Add rule" to create a new rule.
Give the rule a name and select the "Delete" action.
Set the "Days after last modification" value to 30.
Optionally, you can also specify a prefix filter to only delete blobs with a certain prefix.
Click on "Create" to save the rule.
Once the rule is created, it will automatically delete blobs that are older than 30 days. This will work for all storage accounts that have Lifecycle Management enabled.
However, lifecycle management policies are limited to the Blob service only therefore if you want to delete data from a storage table after a certain period of time, you can use the approach as you already follow that is Azure WebJobs.
If the answer helped or pointed you in the right direction please click Accept Answer which might be beneficial to other community members reading this thread. And, if you have any further queries do let us know.