how to delete a Immutable blob storage which is delete-protected by locked time based retention policy

Jagdeep Kaur Saini 20 Reputation points
2025-06-18T23:51:18.7433333+00:00

how to delete a Immutable blob storage which is delete-protected by locked time based retention policy?

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,529 questions
0 comments No comments
{count} votes

Accepted answer
  1. Nandamuri Pranay Teja 3,610 Reputation points Microsoft External Staff Moderator
    2025-06-19T01:44:31.8166667+00:00

    Hello Jagdeep Kaur

    Thank you for your question

    Please be informed that since direct deletion is not allowed while the policy is active, you need to wait for the Retention period to Expire. Because Each blob subject to the policy will have an Effective Legal Hold Time (or Immutable Until time). The blob cannot be deleted until this exact date and time has passed.

    Firstly, Identify the effective retention date/time for the specific blob**.**

    • Navigate to your Storage Account -> Containers.
    • Select the relevant Container.
    • Browse to the Blob.
    • In the blob's properties, look for fields related to immutability, such as Retention Policy End Date or Immutable Until. Wait until this date and time has completely passed.
    • Once the retention period has expired, the blob will become eligible for deletion, and you can then delete it using Azure Portal.

    While you specifically mentioned a time-based retention policy, it's important to note that if a Legal Hold is also applied (either at the container or blob level), it overrides the time-based retention.

    • A legal hold prevents deletion indefinitely until the legal hold is explicitly removed.
    • Check if any legal holds are active on the container or the specific blob.
    • If a legal hold is present, you must remove the legal hold first. This can typically be done in the Azure portal under the container's "Immutability policy" settings.

    Once the legal hold is removed, the time-based retention policy (if still active and unexpired) will then apply. If the time-based retention has also expired, the blob becomes deletable.

    Note- There is NO direct way to forcibly delete a blob that is currently under a locked time-based retention policy before its Immutable Until date. This is precisely the purpose of the "locked" state – to provide non-erasable, non-modifiable storage for compliance.

    References: https://learn.microsoft.com/en-us/azure/storage/blobs/immutable-storage-overview

    Hope the above answer helps! Please let us know do you have any further queries.


    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.  User's image


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.