Azure Documentation

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.

Important: Deleting a storage account permanently removes all data associated with it. Ensure you have backed up any critical data before proceeding.

Prerequisites

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

  1. Sign in to the Azure portal.
  2. 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.
  3. On the storage account's Overview page, select the Delete button at the top of the page.
  4. In the confirmation dialog, enter the name of the storage account to confirm deletion.
  5. 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.

Back to Storage Accounts Next: Access Keys