Remove-AzureStorageAccount
Remove-AzureStorageAccount
Removes a storage account from Azure.
Syntax
Parameter Set: Default
Remove-AzureStorageAccount [-ResourceGroupName] <String> [-Name] <String> [-Profile <AzureProfile> ] [ <CommonParameters>]
Detailed Description
The Remove-AzureStorageAccount cmdlet removes a storage account from Azure.
Parameters
-Name<String>
Specifies the name of the storage account to remove.
Aliases |
StorageAccountName,AccountName |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
true(ByPropertyName) |
Accept Wildcard Characters? |
false |
-Profile<AzureProfile>
Specifies an Azure profile.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-ResourceGroupName<String>
Specifies the name of a resource group.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true(ByPropertyName) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Remove a storage account
This command removes a storage account named StorageAccount17 from the resource group named ResourceGroup11.
PS C:\> Remove-AzureStorageAccount -ResourceGroupName "ResourceGroup11" -Name "StorageAccount17"