Delete a KV secret
Soft-delete the latest version of a KV secret; kv undelete brings it back
vault kv delete -mount=secret path/to/secret
- tool
- vault31 commands
More vault commands
-
vault kv metadata get -mount=secret path/to/secretShow all versions with creation dates and deletion status
-
vault token create -policy=read-only -ttl=1hIssue a short-lived token limited to one policy
-
vault auth listShow all enabled auth methods in Vault
-
vault auth enable kubernetes && vault write auth/kubernetes/config kubernetes_host=https://$KUBERNETES_PORT_443_TCP_ADDR:443Enable and configure the Kubernetes auth method
-
vault write auth/kubernetes/role/my-role bound_service_account_names=<sa> bound_service_account_namespaces=<ns> policies=<policy> ttl=1hBind a Kubernetes ServiceAccount to a Vault policy