An Azure service that stores unstructured data in the cloud as blobs.
Hi Akash Biradar,
Welcome to Microsoft Q&A Platform
You cannot directly delete the storage account/containers. Please note that the immutability features are meant for regulatory compliance. Therefore, we cannot override or bypass them in any case.
Due to compliance guarantees of WORM storage, deletion cannot be overridden by subscription administrators or Microsoft Support or Microsoft Engineering team while protected versions exist. The containers can be deleted only after all retained blob versions have expired and been removed.
Refer - https://learn.microsoft.com/en-us/azure/storage/blobs/immutable-storage-overview#about-immutable-st…
However, you can delete the blob after the retention interval has expired.
Please refer the document for the same - Configure immutability policies for containers - Azure Storage | Microsoft Learn
As a workaround, please follow the steps below to delete the storage account(Only after the retention interval has expired if applicable):
Option 1:
- Delete all the blobs and its versions in all the containers within the storage account you want to remove.
- After deleting all the blobs and versions , delete the containers one by one.
- Once all the blobs and containers are deleted, you will be able to delete the storage account.
Option 2:
To delete container, you must delete all the blobs inside the container first and then proceed with deletion the container.
You can delete the blobs in bulk using [Azure Storage Explorer]
- Download Azure Storage Explorer and install it
- Sign in with the appropriate Microsoft Account
- Browse to the container you want to empty
- Click on the Select All button
- To delete container, you must delete all the blobs inside the container first and then proceed with deletion the container.
Please
and “up-vote” wherever the information provided helps you, **this can be beneficial to other community members.