How can I delete a key vault that is not being used?

Elizabeth Campbell 0 Reputation points
2025-03-07T22:21:42.94+00:00

I accidentally created a key vault, and I now want to delete it since it is not being used. I assigned the Key Vault Administrator to myself so am able to view the contents. There are no secrets, certificates, etc. When I attempt to delete it, I receive the following message: "An error occurred while deleting the key vault." Any help will be appreciated. Thank you!

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,389 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 57,131 Reputation points
    2025-03-07T22:52:26.12+00:00

    KVA doesn't have permissions to delete a Key Vault. I could be wrong, but a KVA is just giving you admin rights to the vault contents, not rights to the Azure KV resources, which are generally managed at the subscription level.

    Refer to the following table in Azure. Only Key Vault Purge Operator(s) can do this. Key Vault Data Access Admin may also work but that seems more skewed to managing access to the data.

    0 comments No comments

Your answer

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