Forrest logo
back to the az tool

az-storage-blob:tldr:165a0

az-storage-blob: Delete a blob object.
$ az storage blob delete --account-name ${storage_account_name} --account-key ${storage_account_key} -c ${container_name} -n ${path-to-blob}
try on your machine

The command you provided is using the Azure CLI (Command-Line Interface) to delete a specific blob from an Azure Storage account.

Let's break down the command and its components:

  • az storage blob delete: This is the base command for deleting a blob from Azure Storage.

  • --account-name ${storage_account_name}: This specifies the name of the storage account from which the blob needs to be deleted. The ${storage_account_name} is a placeholder that needs to be replaced with the actual name of your storage account.

  • --account-key ${storage_account_key}: This specifies the access key required to authenticate and authorize the command to access the storage account. The ${storage_account_key} is a placeholder that needs to be replaced with the actual account key.

  • -c ${container_name}: This option specifies the name of the container where the blob is stored. The ${container_name} is a placeholder that needs to be replaced with the actual name of the container.

  • -n ${path-to-blob}: This option specifies the path to the blob that needs to be deleted. The ${path-to-blob} is a placeholder that needs to be replaced with the actual path of the blob.

To use this command, you need to have the Azure CLI installed and authenticated with your Azure account. Additionally, you should have the necessary permissions (storage account access) to delete the blob.

Remember to replace the placeholders with the appropriate values specific to your storage account, container, and blob before executing the command.

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