- 10 Apr 2023
- 1 Minute to read
- Print
- DarkLight
Delete Container from Azure Storage
- Updated on 10 Apr 2023
- 1 Minute to read
- Print
- DarkLight
Step Details | |
Introduced in Version | 4.0.0 |
Last Modified in Version | 7.12.0 |
Location | Integration > 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
Property | Description | Data Type |
---|---|---|
Connection String | The 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 Name | The name of the container as it appears in Azure. | String |
Outputs
Property | Description | Data Type |
---|---|---|
Error Message | The string returned if there are any errors when deleting the container | String |
Example Inputs and Outputs
Connection String | Container Name | Output |
---|---|---|
DefaultEndpointsProtocol=https;AccountName=[AccountName];AccountKey=[AccountKey]=;EndpointSuffix=core.windows.net | examplecontainername | Container 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 String | examplecontainername | Error Message: "Value cannot be null" |
DefaultEndpointsProtocol=https;AccountName=[AccountName];AccountKey=[AccountKey]=;EndpointSuffix=core.windows.net | Null Value | Error 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.
Articles:
Azure Storage Module