Delete an Azure Backup Recovery Services vault

This article describes how to delete an Azure Fill-in Recovery Services vault. Information technology contains instructions for removing dependencies and then deleting a vault.

Before you start

Yous can't delete a Recovery Services vault with any of the following dependencies:

  • You can't delete a vault that contains protected information sources (for example, IaaS VMs, SQL databases, Azure file shares).
  • You lot tin't delete a vault that contains backup data. One time fill-in data is deleted, it will get into the soft deleted state.
  • You tin't delete a vault that contains backup data in the soft deleted state.
  • You can't delete a vault that has registered storage accounts.

If you try to delete the vault without removing the dependencies, you'll encounter ane of the following fault messages:

  • Vault cannot be deleted as there are existing resources within the vault. Please ensure at that place are no fill-in items, protected servers, or backup management servers associated with this vault. Unregister the post-obit containers associated with this vault earlier proceeding for deletion.

  • Recovery Services vault cannot be deleted equally there are backup items in soft deleted state in the vault. The soft deleted items are permanently deleted later on 14 days of delete operation. Please try vault deletion after the backup items are permanently deleted and there is no item in soft deleted country left in the vault. For more than information, see Soft delete for Azure Fill-in.

Delete a Recovery Services vault

Cull a client:

  • Azure portal
  • PowerShell
  • CLI
  • Azure Resource Managing director

Alert

The post-obit operation is subversive and can't exist undone. All backup information and backup items associated with the protected server will exist permanently deleted. Proceed with circumspection.

Notation

If yous're certain that all backed-up items in the vault are no longer required and want to delete them at once without reviewing, run this PowerShell script. The script will delete all backup items recursively and eventually the entire vault.

To delete a vault, follow these steps:

  • Step 1: Go to vault Overview, click Delete, and so follow the instructions to complete the removal of Azure Backup and Azure Site Recovery items for vault deletion as shown below. Each link calls the respective blade to perform the corresponding vault deletion steps.

    Encounter the instructions in the post-obit steps to understand the process. Likewise, y'all tin go to each blade to delete vaults.

    Screenshot showing to delete vault manually.

    Alternately, go to the blades manually past following the steps beneath.

  • Step 2: If Multi-User Authorization (MUA) is enabled, seek necessary permissions from the security ambassador before vault deletion. Learn more

  • Stride 3: Disable the soft delete and Security features

    1. Go to Properties -> Security Settings and disable the Soft Delete feature if enabled. Come across how to disable soft delete.
    2. Become to Backdrop -> Security Settings and disable Security Features, if enabled. Acquire more
  • Step iv: Delete Cloud protected items

    1. Delete Items in soft-deleted state: After disabling soft delete, check if in that location are any items previously remaining in the soft deleted state. If in that location are items in soft deleted state, then you demand to undelete and delete them again. Follow these steps to observe soft delete items and permanently delete them.

      Screenshot showing the process to delete items in soft-delete state.

    2. Go to the vault dashboard menu -> Fill-in Items. Click Terminate Fill-in to stop the backups of all listed items, and so click Delete Backup Information to delete. Follow these steps to remove those items.

  • Step 5: Delete Fill-in Servers

    1. Go to the vault dashboard carte > Backup Infrastructure > Protected Servers. In Protected Servers, select the server to unregister. To delete the vault, you must unregister all the servers. Correct-click each protected server and select Unregister.

    2. MARS protected servers: Go to the vault dashboard menu -> Backup Infrastructure -> Protected Servers. If you've MARS protected servers, then all servers listed here must be deleted forth with their fill-in information. Follow these steps to delete MARS protected servers.

    3. MABS or DPM management servers: Become to the vault dashboard carte du jour > Backup Infrastructure > Backup Management Servers. If you've DPM or Azure Backup Server (MABS), then all items listed here must be deleted or unregistered along with their backup data. Follow these steps to delete the direction servers.

    Annotation

    Deleting MARS/MABS/DPM servers also removes the corresponding backup items protected in the vault.

  • Stride half dozen: Unregister Storage Accounts

    Ensure all registered storage accounts are unregistered for successful vault deletion. Become to the vault dashboard menu > Backup Infrastructure > Storage Accounts. If you've storage accounts listed hither, so you must unregister all of them. Larn more how to Unregister a storage account.

  • Step vii: Remove Private Endpoints

    Ensure at that place are no Private endpoints created for the vault. Go to Vault dashboard menu > Private endpoint Connections nether 'Settings' > if the vault has any Private endpoint connections created or attempted to be created, ensure they are removed before proceeding with vault delete.

  • Step 8: Delete vault

    After you've completed these steps, yous can go on to delete the vault.

    If y'all're still unable to delete the vault that incorporate no dependencies then follow the steps listed in deleting vault using Azure Resources Manager client.

Delete protected items in the cloud

First, read the Earlier you get-go section to empathize the dependencies and vault deletion process.

To finish protection and delete the backup information, perform the following steps:

  1. From the portal, get to Recovery Services vault, and then go to Backup items. And so, in the Backup Management Type list, select the protected items in the cloud (for example, Azure Virtual Machines, Azure Storage (the Azure Files), or SQL Server on Azure Virtual Machines).

    Screenshot showing to select the backup type.

  2. You'll encounter a list of all the items for the category. Right-click to select the fill-in detail. Depending on whether the backup detail is protected or not, the card displays either the Stop Backup pane or the Delete Backup Data pane.

    • If the End Backup pane appears, select Delete Fill-in Data from the drib-down carte du jour. Enter the proper noun of the backup particular (this field is case-sensitive), and then select a reason from the drop-downwards menu. Enter your comments, if you lot've any. So, select Stop backup.

      Screenshot showing the Stop Backup pane.

    • If the Delete Fill-in Information pane appears, enter the proper noun of the fill-in particular (this field is case-sensitive), and so select a reason from the drop-down menu. Enter your comments, if yous've any. Then, select Delete.

      Screenshot showing the Delete Backup Data pane.

    This option deletes scheduled backups, too deletes on-need backups.

  3. Check the Notification icon: The Notification icon. After the process finishes, the service displays the following message: Stopping backup and deleting backup information for "Fill-in Particular". Successfully completed the operation.

  4. Select Refresh on the Backup Items menu, to make sure the fill-in item was deleted.

    Screenshot of the Delete Backup Items page.

Delete protected items on premises

Start, read the Before you start section to understand the dependencies and vault deletion process.

  1. From the vault dashboard carte, select Fill-in Infrastructure.

  2. Depending on your on-premises scenario, choose the one of the following options:

    • For MARS, select Protected Servers and and then Azure Backup Agent. And then, select the server that you want to delete.

      For MARS, select your vault to open its dashboard.

    • For MABS or DPM, select Backup Management Servers. And then, select the server that y'all want to delete.

      For MABS or DPM, select your vault to open its dashboard.

  3. The Delete pane appears with a alarm bulletin.

    The delete pane.

    Review the warning message and the instructions in the consent cheque box.

    Notation

    • If the protected server is synced with Azure services and backup items exist, the consent check box volition display the number of dependent backup items and the link to view the backup items.
    • If the protected server isn't synced with Azure services and backup items exist, the consent cheque box will brandish only the number of backup items.
    • If in that location're no backup items, the consent check box will enquire for deletion.
  4. Select the consent cheque box, and and so select Delete.

  5. Check the Notification icon delete backup data. After the operation finishes, the service displays the message: Stopping backup and deleting backup data for "Fill-in Particular." Successfully completed the operation.

  6. Select Refresh on the Fill-in Items bill of fare, to make certain the fill-in particular is deleted.

Note

If you delete an on-bounds protected detail from a portal that contains dependencies, you lot'll receive a warning saying "Deleting server'south registration is a destructive operation and cannot be undone. All backup data (recovery points required to restore the data) and Backup items associated with protected server will be permanently deleted."

After this process finishes, you can delete the backup items from management console:

  • Delete backup items from the MARS management console
  • Delete backup items from the MABS or DPM management console

Delete backup items from the MARS management console

Note

If yous deleted or lost the source machine without stopping the backup, the side by side scheduled backup will fail. The old recovery signal expires according to the policy, just the last single recovery point is always retained until you finish the fill-in and delete the data. You tin practise this past following the steps in this section.

  1. Open the MARS management console, go to the Actions pane, and select Schedule Backup.

  2. From the Modify or Finish a Scheduled Fill-in page, select Stop using this backup schedule and delete all the stored backups. Then, select Next.

    Modify or stop a scheduled backup.

  3. From the Stop a Scheduled Backup page, select Finish.

    Stop a scheduled backup.

  4. Yous're prompted to enter a security PIN (personal identification number), which y'all must generate manually. To do this, first sign in to the Azure portal.

  5. Go to Recovery Services vault > Settings > Properties.

  6. Under Security PIN, select Generate. Copy this Pin. The PIN is valid for only v minutes.

  7. In the management console, paste the PIN, and then select OK.

    Generate a security PIN.

  8. In the Modify Backup Progress page, the following message appears: Deleted backup data volition be retained for 14 days. Later that time, fill-in data will be permanently deleted.

    Delete the backup infrastructure.

After you lot delete the on-premises backup items, follow the next steps from the portal.

Delete backup items from the MABS or DPM management panel

Note

If you lot deleted or lost the source automobile without stopping the backup, the next scheduled backup will fail. The old recovery point expires co-ordinate to the policy, but the final single recovery bespeak is e'er retained until you terminate the backup and delete the information. Y'all can practise this by following the steps in this section.

At that place are two methods you can use to delete backup items from the MABS or DPM management console.

Method 1

To stop protection and delete fill-in data, do the following steps:

  1. Open the DPM Ambassador Console, and then select Protection on the navigation bar.

  2. In the brandish pane, select the protection grouping member that you want to remove. Right-click to select the Finish Protection of Group Members option.

  3. From the Stop Protection dialog box, select Delete protected information, and then select the Delete storage online check box. So, select Stop Protection.

    Select Delete protected data from the Stop Protection pane.

    For the following versions, you're prompted to enter a security PIN (personal identification number), which you must generate manually.

    • DPM 2022 UR1 and afterward
    • DPM 2022 UR9 and later on
    • MABS V3 UR1 and later

    To generate the Pin, exercise the following steps:

    1. Sign in to the Azure portal.
    2. Get to Recovery Services vault > Settings > Backdrop.
    3. Under Security Pin, select Generate.
    4. Copy this PIN.

      Note

      The Pivot is valid for just five minutes.

    5. In the management console, paste the Pin, and and so select Submit. Enter security PIN to delete backup items from the MABS and DPM management console
  4. If you had selected Delete storage online in the Terminate Protection dialog box earlier, ignore this stride. Right-click the inactive protection grouping and select Remove inactive protection.

    Remove inactive protection.

  5. From the Delete Inactive Protection window, select the Delete online storage check box, and and so select OK.

    Delete online storage.

    For the following versions, you're prompted to enter a security PIN (personal identification number), which you must generate manually.

    • DPM 2022 UR1 and after
    • DPM 2022 UR9 and later
    • MABS V3 UR1 and afterwards

    To generate the PIN, exercise the following steps:

    1. Sign in to the Azure portal.
    2. Get to Recovery Services vault > Settings > Properties.
    3. Under Security PIN, select Generate.
    4. Copy this Pin.

      Note

      The PIN is valid for but v minutes.

    5. In the management console, paste the PIN, and then select Submit. Enter security PIN to delete backup items from the MABS and DPM management console

    The protected member status changes to Inactive replica available.

Method 2

Open the MABS management or DPM management panel. Under Select data protection method, clear the I desire online protection check box.

Select the data protection method.

After you lot delete the on-premises backup items, follow the adjacent steps from the portal.

Delete the Recovery Services vault

  1. When all dependencies have been removed, curl to the Essentials pane in the vault menu.

  2. Verify that there aren't any fill-in items, backup management servers, or replicated items listed. If items withal announced in the vault, refer to the Before you kickoff section.

  3. When there are no more items in the vault, select Delete on the vault dashboard.

    Select Delete on the vault dashboard.

  4. Select Aye to verify that you want to delete the vault. The vault is deleted. The portal returns to the New service menu.

Next steps

  • Larn near Recovery Services vaults.
  • Learn about monitoring and managing Recovery Services vaults.