Is there any feature in the Azure portal that can auto-remove blob storage containers after the container is created a week?

yan 26 Reputation points
2021-09-03T04:52:25.897+00:00

Hi,

I have a task must perform.
Every transaction will create a container to store each transaction information.
But after the transaction (the container) is created after a week, it requires to remove it.
If the azure portal will have an automatic function to perform container auto-remove after the container is created a week?

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.
3,218 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,919 questions
{count} vote

Accepted answer
  1. Sumarigo-MSFT 47,021 Reputation points Microsoft Employee
    2021-09-03T05:52:58.13+00:00

    @yan Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    Based on your scenario you can use lifecycle management, Azure Blob Storage has a feature of lifecycle management. Where you can manage the Azure Blob storage lifecycle (Azure Storage lifecycle management offers a rule-based policy that you can use to transition blob data to the appropriate access tiers or to expire data at the end of the data lifecycle. Delete blobs, blob versions, and blob snapshots at the end of their lifecycles.)

    Define a policy there to delete blobs if they are older than X days and Azure Storage will take care of deletion for you.

    There is also GitHub information on Automatically delete blobs after a given time

    For more information and other option , please refer here

    How to delete files from blob container that are older than X days?

    • Please see the Tasks option under Automation section(For specific container).
      128906-animation1.gif

    Kindly let us know if you have any further queries. I’m happy to assist you further.

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    6 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.