Failed to delete storage account

Cortez Lake 0 Reputation points
2024-08-08T20:32:36.91+00:00

Screenshot 2024-08-08 at 4.26.37 PM.png

Receiving an error "failed to delete storage account". Versioning will not let me disable it. Screenshot 2024-08-08 at 4.31.50 PM.png

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,218 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,916 questions
{count} votes

6 answers

Sort by: Most helpful
  1. akinbade abiola 18,130 Reputation points
    2024-08-08T21:29:17.2166667+00:00

    Hello Cortez Lake,

    Thanks for your question.

    In the Settings blade for the resource, select Locks.

    If there is a Delete lock, click on it and select Delete to remove the lock. Confirm the removal.

    Screenshot showing how to lock a storage account with a CannotDelete lock You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola


  2. Konstantinos Passadis 19,161 Reputation points MVP
    2024-08-08T22:23:52.3166667+00:00

    Hello Cortez Lake,

    Please delete all containers first and then you should be able to delete the account

    You must empty the Storage along with all versions before deleting the Storage Account

    Also have a look :

    https://stackoverflow.com/questions/70905457/unable-to-delete-azure-storage-account-with-versioning-enabled

    --

    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards

    0 comments No comments

  3. KarishmaTiwari-MSFT 20,127 Reputation points Microsoft Employee
    2024-08-08T22:29:37.4933333+00:00

    @Cortez Lake In addition to Akinbade's answer, can you check if your storage account is protected by an immutability policy, as that can prevent you from deleting it.

    Check if any containers have a locked immutability policy or legal hold. These policies prevent deletion of the storage account. If you find any containers with a locked immutability policy, you will need to disable it.

    https://learn.microsoft.com/en-us/azure/storage/blobs/immutable-policy-configure-container-scope?tabs=azure-portal

    Let us know if you have any questions or need further help, via comments.


  4. Konstantinos Passadis 19,161 Reputation points MVP
    2024-08-08T23:20:21.8833333+00:00

    Hello Cortez Lake,

    Please delete all containers first and then you should be able to delete the account

    You must empty the Storage along with all versions before deleting the Storage Account

    Also have a look :

    https://stackoverflow.com/questions/70905457/unable-to-delete-azure-storage-account-with-versioning-enabled

    --

    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards

    0 comments No comments

  5. Cortez Lake 0 Reputation points
    2024-08-09T22:14:21.6+00:00

    Thank you everyone who replied. I ended up nuking the subscription. It was the easiest solution. I appreciate the assistance.


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.