0
votes

I was looking a way to delete azure storage account using powershell.

There are powershell command to remove blob,container,table,queue, filed, directory. But I don't see any way to remove/delete azure storage account using powershell.

Through portal I can do it, but need to do it through powershell.

Anyone knows how to do this ?

2

2 Answers

5
votes

Have you tried Remove-AzureRmStorageAccount or Remove-AzureStorageAccount depending on the deployment model you are using?

To find those you can always use Get-Command remove-azure*storage*

-1
votes

This article may help you -> scroll down to- To remove the whole storage account

This is the powershell command-

Remove-AzureRmResourceGroup -Name resourceGrouptest

where resourceGrouptest is the name of the resource group. you also need to first login into your account using-

Login-AzureRmAccount