Skip to content
Azure Lessons
Azure Lessons
  • Home
  • AWS
  • Azure
    • Azure Virtual Machine
    • Azure Active Directory
    • Azure CLI
    • Azure CLI Commands List
    • Azure Cognitive Services
    • Azure Cosmos DB
    • Azure DevOps
    • Azure Functions
    • Azure PowerShell Commands
    • Azure Sentinel
    • Azure SQL
    • Azure Storage
    • Azure Synapse
  • Blogs
  • FREE EBOOK

az storage account delete

February 3, 2025 by Rajkishore

In this article, Let me walk you through the syntax and usage of the az storage account delete command along with certain examples of how to use this command.

Table of Contents

  • az storage account delete
    • Syntax
    • Example-1
    • Example-2

az storage account delete

This Azure CLI command helps you to delete a storage account based on the specified id or name.

Syntax

az storage account delete [--ids]
az storage account delete  [--name] [--resource-group]

Example-1

The below command helps you delete the alazureml7822510715 storage account under the MyNewResGrp Resource Group.

az storage account delete -n alazureml7822510715 -g MyNewResGrp

After executing the above command, I got the expected output as shown below.

PS /home/bijay> az storage account delete -n alazureml7822510715 -g MyNewResGrp                                                                                                    
Are you sure you want to perform this operation? (y/n): y

The storage account got deleted successfully, and the same output you can see in the screenshot below.

az storage account delete

Example-2

The below command helps you delete the newworksaupdt storage account using a resource ID.

az storage account delete --ids /subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1/resourceGroups/MyNewResGrp/providers/Microsoft.Storage/storageAccounts/newworksaupdt

After executing the above command, I got the expected output as shown in the screenshot below.

az command to delete storage account

You may also like following the articles below.

  • Az storage account list
  • az storage account show
  • Az storage account show-connection-string
  • Az storage account keys renew
Microsoft Azure
Rajkishore

I am Rajkishore, and I am a Microsoft Certified IT Consultant. I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machines, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.

az account tenant list
az vm start
Subscribe To Our YouTube Channel Subscribe to AzureLessons YouTube Channel

Recent Posts

  • Azure Login
  • Azure Data Studio Download
  • Azure Data Studio
  • Azure Front Door vs Application Gateway
  • Azure Container Apps
  • About Us
  • Contact Us
  • Privacy Policy
  • Sitemap
© 2026 Azure Lessons