Delete Container from Azure Storage
  • 10 Apr 2023
  • 1 Minute to read
  • Dark
    Light

Delete Container from Azure Storage

  • Dark
    Light

Article summary

Step Details

Introduced in Version4.0.0
Last Modified in Version7.12.0
LocationIntegration > Azure Storage

The Delete Container from Azure Storage step deletes an Azure Blob container associated with a specific Storage account. Deleting a container from Azure Blob Storage removes the container and all of its contents (blobs) permanently. This can be useful when a container is no longer needed to free up storage space or to delete sensitive or outdated data.

Prerequisites 

This step requires the Azure module to be installed before it will be available in the toolbox. In addition, the step will require the connection string for an Azure Storage account that has access to the container.


Properties

Inputs

PropertyDescriptionData Type
Connection StringThe connection string for an Azure Storage account. This can be located by navigating to the Storage Account within the Azure Portal, then selecting Shared access signature to create and display the connection string.
String
Container NameThe name of the container as it appears in Azure.String

Outputs

PropertyDescriptionData Type
Error MessageThe string returned if there are any errors when deleting the containerString

Example Inputs and Outputs

Connection StringContainer NameOutput
DefaultEndpointsProtocol=https;AccountName=[AccountName];AccountKey=[AccountKey]=;EndpointSuffix=core.windows.net
examplecontainernameContainer will be deleted within Azure
DefaultEndpointsProtocol=https;AccountName=[AccountName];AccountKey=[AccountKey]=;EndpointSuffix=core.windows.net
ExampleContainerName!
Error Message: "The Specified resource name contains invalid characters"
Empty Stringexamplecontainername
Error Message: "Value cannot be null"
DefaultEndpointsProtocol=https;AccountName=[AccountName];AccountKey=[AccountKey]=;EndpointSuffix=core.windows.net
Null ValueError Message: "Value cannot be null"


Common Errors

The specified resource name contains invalid characters

Due to how the step is configured, the name for the container must be entered as how it appears within Azure. If this value is being passed as a dynamic value, ensure that the value is not null and conforms to Azure's naming restrictions.


Related Information

Articles:
Azure Storage Module


Was this article helpful?