Delete Blob Container

Handian Sudianto 6,601 Reputation points
2025-12-11T03:32:43.4833333+00:00

I have blob container for testing and now i want to delete this blob.

I got below error while deleting the blob

Failed to delete 1 out of 1 container(s): veeam-repo: The storage account sa1 container veeam-repo is protected from deletion due to ImmutableStorageWithVersioning.

Anyone know how to delete this blob?User's image

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Venkatesan S 1,165 Reputation points Microsoft External Staff Moderator
    2025-12-11T03:59:03.24+00:00

    Hi Handian Sudianto ,

    Thanks for reaching out Microsoft Q&A forum,

    It looks like you're facing an issue with deleting your blob container due to the ImmutableStorageWithVersioning setting. This setting generally protects the container from being deleted to comply with data retention requirements.

    Here’s what you can do to resolve this:

    1. Check Immutability Policy: Since the container is protected by an immutable policy, you’ll need to review any legal holds or retention policies that might be in place. You may need to remove any legal holds, if applicable, or let the retention period expire.
    2. Use Azure Portal or PowerShell:
      • If you have the right permissions, you can manage or view the immutability settings in the Azure portal.
      • You can also use PowerShell with the Remove-AzStorageContainer cmdlet, but remember that the container must not have any legal holds or active retention policies.
    3. Delete Blobs First: Make sure there are no blobs left inside the container—delete all blobs within the container before trying to delete the container itself.
    4. Permissions: Double-check if you have the necessary permissions (Storage Blob Data Contributor or higher) to perform deletion actions.

    If you're unsure about the immutability policy or how to check/delete it, you can check out the following resources for more information:

    **Update:

    **After discussing through offline, The time retention policy is applied to blobs until january 2 2026.

    Once the policy expires you can delete the blob.

    Hope this helps! If you're still stuck or if you have any follow-up questions, feel free to ask!

    Please do not forget to 210246-screenshot-2021-12-10-121802.pngand “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


0 additional answers

Sort by: Most helpful

Your answer

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