DEV Community

Cover image for Purge a soft-deleted Azure Key Vault
Rafał Sroka
Rafał Sroka

Posted on

3 2

Purge a soft-deleted Azure Key Vault

If you came here you probably already know that delete a Key Vault in Azure is not as easy as it sounds. Sure, it's gone from the Azure portal. However, when you try to create one using the same name you'll find out that it was not fully deleted.

The following recipe shows how to get rid of the Key Vault, for good.

  1. Install Azure CLI according to the following steps. The example below uses homebrew (macOS).

    brew update && brew install azure-cli
    
  2. Login and find the soft-deleted key vault you want to purge. If you happen to have multiple subscriptions, use the --subscription param to indicate which one should be searched.

    az login
    az keyvault list-deleted
    
  3. Purge it

    az keyvault purge --name <keyvault-name>
    

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay