Deletion of version file automatically if its more then 5

Vishnu Prakash Balotiya 11 Reputation points

i would like to delete blob file (old version file) like if more then 5 version file created i would like to delete automatically

is there any straight forward way to delete version file automatically??

any answerer will be apricated thanks

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,759 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,489 questions
{count} vote

1 answer

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 18,637 Reputation points Microsoft Employee

    @Vishnu Prakash Balotiya Thanks for posting your query on Microsoft Q&A.

    You can use lifecycle management to automatically delete old versions. For more information about lifecycle management, see Optimize costs by automating Azure Blob Storage access tiers.

    Also, see [Azure RBAC action to delete a blob version](

    You can configure the blob version to get deleted after certain days. I do not see an inbuilt way of doing it based on the number of versions.

    Let me know if you have further questions.

    0 comments No comments