Forrest logo
back to the az tool

az-storage-container:tldr:053a2

az-storage-container: Mark the specified container for deletion.
$ az storage container delete --account-name ${storage_account_name} --name ${container_name} --fail-not-exist
try on your machine

This command is used to delete a container in the Azure Storage account.

  • The az storage container delete command is used to delete a container.
  • --account-name specifies the name of the Azure Storage account where the container is located. ${storage_account_name} is a placeholder for the actual name of the storage account.
  • --name specifies the name of the container to be deleted. ${container_name} is a placeholder for the actual name of the container.
  • --fail-not-exist is an optional flag that specifies that the command should not return an error if the container does not exist.

Overall, this command is used to delete a container in Azure storage, but it will not report an error if the container doesn't exist.

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