question

yan-6578 avatar image
0 Votes"
yan-6578 asked SumanthMarigowda-MSFT edited

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

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-blob-storage
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SumanthMarigowda-MSFT avatar image
1 Vote"
SumanthMarigowda-MSFT answered SumanthMarigowda-MSFT edited

@yan-6578 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.




animation1.gif (583.4 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the reply. @Sumarigo-MSFT
How about deleting containers older than X days?
Is the portal has other feature can provide this functions?

0 Votes 0 ·

@yan-6578 Presently we have only the above mentioned features and services to delete the blobs for X days!

If you wish you can share your feedback here( What kind of specific feature are you looking in portal)! We will share and elevate your feedback with the Azure Storage product team.
All the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure

Note: Azure is working on a new Self-Serve option for customers to share and vote on product feedback. When available, you will be able to go to https://feedback.azure.com/ and share/up-vote product feature ideas.


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.



0 Votes 0 ·