Remove-​Azure​Rm​Backup​Vault

Deletes a Backup vault.

Syntax

Remove-AzureRmBackupVault
      [-Vault] <AzureRMBackupVault>
      [-Confirm]
      [-Force]
      [-WhatIf]
      [<CommonParameters>]

Description

The Remove-AzureRmBackupVault cmdlet deletes an Azure Backup vault.

Before you can delete a Backup vault, it must be empty. Use the Remove-AzureRmBackupContainer cmdlet to remove infrastructure as a service (IaaS) virtual machine backup data from the vault. Use the Delete-RegisteredServer cmdlet to remove other registered servers and backup data.

Examples

Example 1: Delete an Azure Backup vault

PS C:\>Get-AzureRmBackupVault -Name "Vault03" | Remove-AzureRmBackupVault

This command gets the Azure Backup vault named Vault03 by using the Get-AzureRmBackupVault cmdlet. The command passes that vault to the current cmdlet by using the pipeline operator. The current cmdlet removes the vault.

Required Parameters

-Vault

Specifies a Backup vault that this cmdlet removes. To obtain an AzureRmBackupVault, use the Get-AzureRmBackupVault cmdlet.

Type:AzureRMBackupVault
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-Force
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

AzureRMBackupVault

Outputs

None

Notes

  • None