Delete a Storage Account
This guide explains how to delete an Azure Storage account. Deleting a storage account is a permanent operation and cannot be undone.
Prerequisites
- An Azure subscription.
- A storage account that you want to delete.
Methods to Delete a Storage Account
You can delete a storage account using the Azure portal, Azure CLI, or Azure PowerShell.
Method 1: Using the Azure Portal
- Sign in to the Azure portal.
- Navigate to the storage account you want to delete. You can find it by searching for "Storage accounts" in the top search bar and then selecting your account.
- On the storage account's Overview page, select the Delete button at the top of the page.
- In the confirmation dialog, enter the name of the storage account to confirm deletion.
- Select Delete.
Method 2: Using Azure CLI
Use the following Azure CLI command to delete a storage account:
az storage account delete --name <storage-account-name> --resource-group <resource-group-name> --yes
Replace <storage-account-name> with the name of your storage account and <resource-group-name> with the name of the resource group containing the storage account.
Method 3: Using Azure PowerShell
Use the following Azure PowerShell command to delete a storage account:
Remove-AzStorageAccount -ResourceGroupName <resource-group-name> -Name <storage-account-name>
Replace <resource-group-name> with the name of the resource group and <storage-account-name> with the name of your storage account.
After Deletion
Once a storage account is deleted, it cannot be recovered. All data, including blobs, files, tables, and queues, will be irretrievably lost.
If you have any associated resources that depend on the storage account, ensure they are reconfigured or updated to point to a different storage solution.