Unable to delete AZ storage container or storage account

Mansoor Bhatti 0 Reputation points
2024-07-24T19:54:53.8566667+00:00

changeblobversion.png

I want to delete a blob storage container/account.

I am unable to delete it as blob versioning is enabled.

As per attached file i am unable to delete storage container.

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
683 questions
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,065 questions
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 36,431 Reputation points Microsoft Employee
    2024-07-24T20:22:06.05+00:00

    @Mansoor Bhatti

    If version-level immutability support is enabled for a container and the container contains one or more blobs, then you must delete all blobs in the container before you can delete the container, even if there are no immutability policies in effect for the container or its blobs.

    You can clear the hold and then delete the blobs. Afterwards you should be able to delete the container and storage account. More information can be found in this StackOverflow thread.

    Hope this helps. Let me know if you are still facing issues or have further questions.


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A!

    User's image


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.