Vault cannot be deleted as there are existing resources within the vault

Vault cannot be deleted as there are existing resources within the vault

In this Azure tutorial, we will discuss how to fix the error Vault cannot be deleted as there are existing resources within the vault. that I got while trying to delete a recovery services vault using Azure Portal.

Recently, I was trying to remove all the unnecessary Azure resources that I was not using, When I tried deleting an Azure vault, I got the error Vault cannot be deleted as there are existing resources within the vault.

Below are the complete steps that I have followed to delete the Azure recovery services vault Vault using Azure Portal.

  1. Log in to the Azure Portal and navigate to the Azure recovery services vault that you want to delete.
  2. Click on the Delete option on the Overview tab.
  3. The moment i have clicked on the Delete button I got the error Vault cannot be deleted as there are existing resources within the vault.

The complete error message is as below

Vault cannot be deleted as there are existing resources within the vault. : TSINFO. Please ensure all containers have been unregistered from the vault and all private endpoints associated with the vault have been deleted , and retry operation.

You can see it here

Vault cannot be deleted as there are existing resources within the vault

Now how did I fix this error?

Vault cannot be deleted as there are existing resources within the vault [Solved]

Well, to fix the error Vault cannot be deleted as there are existing resources within the vault, I followed the below steps.

  1. Log in to the Azure Portal, navigate to the Recovery Services vault.
  2. On the Azure recovery services vault page, click on the Backup items.
Vault cannot be deleted

3. You can able to see there is 1 backup item that is involved with the Azure recovery services vault and that we have to remove before deleting the vault. Click on the Azure Backup Agent to see the exact item.

Vault cannot be deleted error

4. On the Backup Items (Azure Backup Agent) page, you can able to see the backup item is tsinfo. Click on the backup item.

how to fix Vault cannot be deleted error

5. As the next step, click on the Computer name as highlighted below.

Vault cannot be deleted as there are existing resources within the vault error

6. Click on the Delete button to delete the backup item or server.

Vault cannot be deleted as there are existing resources within the vault error how to fix

7. Type the server name, Provide the reason for deletion, Mention the comments and then finally, click on the Delete button to delete the backup item.

Vault Deletion Error Vault cannot be deleted as there are existing resources within the vault

Now, you can see the backup item has been deleted sucessfully.

Vault cannot be deleted error solution

Well, we can try deleting the Azure recovery services vault again.

Navigate to the Azure Recovery services vault page and click on the Delete button.

Vault cannot be deleted error how to fix

Click on the Yes button to confirm the deletion on the next window.

You can able to see this time there is no issue at all, the Azure Recovery services vault has been deleted sucessfully.

how to fix Vault cannot be deleted

Basically, you need to remove all the attched items before deleting the Azure recovery services vault before deleting the specific Azure recovery services vault.

You may like to follow the below articles

Wrapping Up

Well, in this article we have discussed, how to fix the error Vault cannot be deleted as there are existing resources within the vault. Hope it will help to fix the same issue for you.