Forrest logo
back to the az tool

az-storage:tldr:55075

az-storage: Delete a storage account.
$ az storage account delete -g ${group_name} -n ${account_name}
try on your machine

The command "az storage account delete" is used to delete a storage account in Azure Storage.

Here's an explanation of the components in the command:

  • "az": This is the Azure command-line interface (CLI) that allows you to interact with Azure resources from the command line.

  • "storage account": This is the Azure resource type that represents a storage account in Azure Storage, used for storing and retrieving data.

  • "delete": This is the action specified in the command to delete a storage account.

  • "-g ${group_name}": This specifies the resource group containing the storage account to be deleted. The "-g" flag is used to indicate that the following value refers to the resource group. "${group_name}" represents the name of the resource group, which should be provided as a variable.

  • "-n ${account_name}": This specifies the name of the storage account that should be deleted. The "-n" flag is used to indicate that the following value refers to the account name. "${account_name}" represents the name of the storage account, which should be provided as a variable.

By executing this command with the specific values for the resource group name and storage account name, the corresponding storage account will be deleted from Azure Storage.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the az tool