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
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 MyNewResGrpAfter 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): yThe storage account got deleted successfully, and the same output you can see in the screenshot below.

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/newworksaupdtAfter executing the above command, I got the expected output as shown in the screenshot below.

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

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.
