Share via

how to Delete My staorage Account created on AZure Portal

BharathKumar Palavalli 0 Reputation points
2026-05-13T19:51:38.2033333+00:00

i created a storage Account in portal storage Accounts i am trying to delete that Storare account waht ia m created i am not able to delete there is amentioning of there is a lock willbe there on parent account not able to delet can you provide solution tos that one

Azure Storage
Azure Storage

Globally unique resources that provide access to data management services and serve as the parent namespace for the services.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Vallepu Venkateswarlu 9,325 Reputation points Microsoft External Staff Moderator
    2026-05-13T22:00:59.94+00:00

    Hi BharathKumar Palavalli,

    Welcome to Microsoft Q&A Platform.

    As per your statement, a lock has been applied at the Storage Account level, which is preventing the Storage Account from being deleted through the Azure portal.

    First, identify whether the lock is applied at the Storage Account level or the Resource Group level by navigating to:

    Storage Account → Locks

    User's image

    If the lock is applied at the Storage Account level:

    1. Navigate to the Locks section of the Storage Account.
    2. Delete the applied lock.
    3. Once the lock is removed, try deleting the Storage Account again from the Azure portal.

    If the lock is applied at the Resource Group level:

    As shown in the screenshot, the Delete button will be disabled. In this case:

    1. Navigate to the Resource Group where the Storage Account is located.
    2. Open the Locks section under the Resource Group.
    3. Delete the applied lock.
    4. After removing the lock, try deleting the Storage Account again

    Reference

    Disable soft delete / permanently delete data (if you’re cleaning up blobs first): https://learn.microsoft.com/azure/backup/
    Delete a storage account (portal, CLI, PowerShell): https://learn.microsoft.com/azure/storage/common/storage-account-create#delete-a-storage-account

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

    Was this answer helpful?

    0 comments No comments

  2. Andreas Baumgarten 131.7K Reputation points MVP Volunteer Moderator
    2026-05-13T20:01:15.5433333+00:00

    Hi @BharathKumar Palavalli ,

    please take a look at the Storage Account you want to delete and verify if there is a lock on this resource:

    User's image

    The lock can be directly on the Storage Account or for instance on the Resource Group like in the screenshot.

    You can remove the lock on the Storage Account or the parent object (Resource Group). If all locks are removed you should be able to delete the Storage Account.


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten

    Was this answer helpful?

    0 comments No comments

  3. Q&A Assist
    2026-05-13T19:51:48.3766667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To delete a storage account in Azure when a lock is preventing deletion, remove the lock first and then delete the account.

    1. Check for and remove locks on the storage account or its resource group:
      • In the Azure portal, go to Resource groups and select the resource group that contains the storage account.
      • In the left menu, select Locks.
      • If there is a lock (for example, Delete or ReadOnly), select the lock and then select Delete to remove it.
      • Also open the storage account itself, go to Locks, and remove any locks there.
    2. Delete the storage account from the Azure portal:
      • Go to the storage account in the Azure portal.
      • Select Delete.
      • Confirm the deletion when prompted.
    3. (Optional) Delete via Azure CLI or PowerShell instead of the portal:
      • Azure CLI:
             az storage account delete --name <storage-account> --resource-group <resource-group>
        
      • Azure PowerShell:
             Remove-AzStorageAccount -Name <storage-account> -ResourceGroupName <resource-group>
        

    If the storage account is still in use by Azure virtual machines (for example, VHDs attached as OS or data disks), Azure will block deletion. In that case:

    1. Identify any VMs using disks from this storage account.
    2. Delete VMs that are using OS disks stored in this account.
    3. Detach any data disks stored in this account from remaining VMs.
    4. Retry deleting the storage account.

    Deleting a storage account permanently removes all data in that account, so back up anything that needs to be retained before deleting.


    References:

    Was this answer 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.