This is the full example of how to remove an Azure Container using PowerShell.

Read the full post on using PowerShell on Azure Containers here.

## Get Parameters
Param(
    [string] $ResourceGroupName,
    [string] $StorageAccountName,
    [string] $StorageContainerNames
)

## Static Parameters
#Login-AzureRmAccount
#Set-AzureRmContext -SubscriptionID 11111111-1111-1111-1111-111111111111
#$ResourceGroupName = "GroupName"
#$StorageAccountName = "AccountName"
#$StorageContainerNames = "ContainerName1, ContainerName2, ContainerName3"

try{

    ## Get Storage Details
    Write-Output ("Get Storage Account $StorageAccountName Keys")
    $Keys = Get-AzureRmStorageAccountKey -ResourceGroupName $ResourceGroupName -Name $StorageAccountName;

    Write-Output ("Get Storage Account $StorageAccountName Context")
    $StorageContext = New-AzureStorageContext -StorageAccountName $StorageAccountName -StorageAccountKey $Keys[0].Value;

    ## Proccess Each Container
    $StorageContainerNames.Split(",") | ForEach {       

        $currentContainer = $_

        Write-Output ("Start Remove for Container $currentContainer")

        ## Remove Container
        if ((Get-AzureStorageContainer -Context $StorageContext | Where-Object { $_.Name -eq $currentContainer })){           

            ## Remove a Blob Container in the Storage Account
            Write-Output ("Removing Container: $currentContainer")
            Remove-AzureStorageContainer -Context $StorageContext -Name $currentContainer -Force;
            Write-Output ("Container $currentContainer Removed")           

        }
        else {

            Write-Warning "Container $currentContainer doesn't exists."

        }
    }
}catch {

    Write-Error "$_.Exception.Message"

}