IBM Cloud Docs
Why can't I delete vaults?

Why can't I delete vaults?

You are not able to delete vaults by using either UI or API.

You try to delete a vault, but it fails with the following message:

The service was not able to delete vault <vault_name> because it still contains some keys or keystores.

If you want to delete a vault, you need to delete all managed keys, and delete or disconnect from all keystores that are managed in the vault first. The Delete function is available for empty vaults only.

Verify with your administrator that you're assigned the correct role in the applicable resource group or service instance. And then, delete all managed keys, and delete or disconnect from all keystores that are managed in the vault, and try again.