i want to delete rg and recovy service vault - rahulrsv but not deleting i just made it for learning and testing purpose but now this stuck please help to delete this

rahul Gaur 0 Reputation points
2026-10-14T18:19:37.9766667+00:00

i want to delete rg and recovy service vault - rahulrsv but not deleting i just made it for learning and testing purpose but now this stuck please help to delete this

Azure Backup
Azure Backup

An Azure backup service that provides built-in management at scale.

0 comments No comments

1 answer

Sort by: Newest
  1. Divyesh Govaerdhanan 11,890 Reputation points MVP Volunteer Moderator
    2026-10-15T00:40:11.9933333+00:00

    Hello rahul Gaur,

    Welcome to Microsoft Q&A,

    A resource group can’t be deleted while it holds a Recovery Services vault that still has dependencies. The vault itself can’t be deleted while it contains backup items (including soft-deleted ones), registered servers or storage accounts, or private endpoints.

    Clean it up in this order:

    1. Go to the vault, then Properties > Security Settings. Turn off Soft Delete and Security Features. If Multi-User Authorization is on, get approval first.
    2. Go to Backup items. For each item, select Stop backup, then Delete Backup Data. Type the item name (case sensitive) when prompted.
    3. Check that no items remain in the soft-deleted state. If any do, restore them and delete them again. See Delete soft-deleted backup items permanently.
    4. Go to Backup Infrastructure. Unregister any protected servers, backup management servers and storage accounts.
    5. Go to Settings > Networking > Private access. Remove any private endpoint connections.
    6. If you used Azure Site Recovery, remove the replicated items too.
    7. Delete the vault, then delete the resource group.

    Since this is a learning vault and you don’t need the data, there is a faster way. On the vault Overview, select Delete > Delete using PowerShell Script, then Generate and Download Script. Run it in PowerShell 7 or later. It disables soft delete, deletes all backup items, unregisters servers and storage accounts, removes private endpoints, and deletes the vault. This is destructive and can’t be undone.

    If soft delete was still on when you deleted the items, they are kept for 14 days before being purged. Either follow step 3 or wait for that period.

    Full reference: Delete an Azure Backup Recovery Services vault

    If it still fails, share the exact error message, and I’ll narrow it down.

    Please Upvote and accept the answer if it helps!!

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.