Azure Docs

Delete an Azure Storage Account

This document outlines the steps and considerations for deleting an Azure Storage Account. Deleting a storage account is a permanent action and cannot be undone. All data within the account will be irrecoverably lost.

Important: Ensure you have backed up any critical data before proceeding with the deletion of a storage account.

Prerequisites

Steps to Delete a Storage Account

Method 1: Using the Azure Portal

  1. Sign in to the Azure portal.
  2. Navigate to your Storage Account. You can find it by searching for "Storage accounts" in the top search bar and then selecting your account from the list.
  3. In the storage account's overview page, locate and click the "Delete" button in the top menu bar.
  4. A confirmation dialog will appear. You will need to type the name of the storage account to confirm deletion.
  5. Click the "Delete" button to initiate the deletion process.

Tip: Before deleting, review the resource group the storage account belongs to. If the storage account is the only resource in that group and you no longer need the group, you can also delete the resource group.

Method 2: Using Azure CLI

You can use the Azure Command-Line Interface (CLI) to delete a storage account. Ensure you have the Azure CLI installed and are logged in.


az storage account delete --name <storage-account-name> --resource-group <resource-group-name> --subscription <subscription-id>
            

Method 3: Using Azure PowerShell

Alternatively, you can use Azure PowerShell.


Remove-AzStorageAccount -ResourceGroupName <resource-group-name> -Name <storage-account-name>
            

Considerations Before Deleting

Warning: Deleting a storage account is irreversible. Double-check all details before proceeding.

What Happens After Deletion

If you need to restore data after deletion, you would typically rely on backups taken prior to the deletion event.