HashiCorp Cloud Platform
Delete static secrets
Static secrets are created as key/value pairs. Static secrets typically persist over long periods of time.
Refer to the Design a secret strategy documentation for information and tips on app and secret conventions.
Prerequisites
- An HCP IAM user or service principal with the HCP contributor role or higher.
- An HCP Vault Secrets app and secret created.
- Authenticated to the HCP Portal or HCP CLI
Examples
Delete a secret from Vault Secrets application on active profile:
$ hcp vault-secrets secrets delete secret_1
Delete a secret from specified Vault Secrets application:
$ hcp vault-secrets secrets delete secret_2 --app test-app