
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.
- How to Create a Recovery Services vault in Azure
- Method ‘get_SerializationSettings’ error when Login-AzureRMAccount
- The term ‘Login-AzureRmAccount’ is not recognized as the name of a cmdlet error
Below are the complete steps that I have followed to delete the Azure recovery services vault Vault using Azure Portal.
- Log in to the Azure Portal and navigate to the Azure recovery services vault that you want to delete.
- Click on the Delete option on the Overview tab.
- 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

Now how did I fix this error?
Table of Contents
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.
- Log in to the Azure Portal, navigate to the Recovery Services vault.
- On the Azure recovery services vault page, click on the Backup items.

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.

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

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

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

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.

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

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.

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.

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
- Cannot Open Server Requested By The Login Azure SQL
- Error CS012 The call is ambiguous between the following methods or properties
- ‘Authority’ Uri should have at least one segment in the path Error
- Error While Redeploying The Azure Function System.Exception: Publishing failed
- The specified module ‘ADSync’ was not loaded because no valid module file was found in any module directory error
- Because of protocol error (code 0x112d) the remote session will be disconnected
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.