Forrest logo
back to the az tool

az-storage-queue:tldr:bdec4

az-storage-queue: Delete the specified queue and any messages it contains.
$ az storage queue delete --account-name ${storage_account_name} --name ${queue_name} --fail-not-exist
try on your machine

This command utilizes the Azure command-line interface (CLI) to delete a queue in Azure Storage.

Here is the breakdown of the command and its arguments:

  • az storage queue delete indicates the command to delete a storage queue.
  • --account-name ${storage_account_name} refers to the name of the storage account where the queue is located. ${storage_account_name} is a placeholder that should be replaced with the actual name of the storage account.
  • --name ${queue_name} specifies the name of the queue to be deleted. ${queue_name} is a placeholder that should be replaced with the actual name of the queue.
  • --fail-not-exist is an optional argument that tells the command to handle the scenario where the specified queue does not exist. Instead of throwing an error, it will simply exit without making any changes.

So, this command is used to delete a queue in Azure Storage, and it allows for a graceful exit if the specified queue does not 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