HashiCorp Cloud Platform
secrets delete
Command: vlt secrets delete
The secrets delete
command deletes a secret in an application.
Examples
Delete the secret named "expiration" stored in the "company-card" application.
$ vlt secrets delete --app-name="company-card" expiration
Successfully deleted secret
Tip
If the CLI is already configured to point to the "company-card" application via
vlt init
, you can omit the --app-name
parameter.
Try reading the expiration secret.
$ vlt secrets get --app-name="company-card" expiration
The secret has been deleted and is no longer accessible.
Error: secret not found
Usage
$ vlt secrets delete [options] secret_name
Command options
--organization
(string: "")
- HCP organization that the application is in. Use-o
for its shorthand.--project
(string: "")
- HCP project that the application is in. Use-p
for its shorthand.--app-name
(string: "")
- The application that the secret is in. Use-a
for its shorthand.--format
(string: "")
- The output format you would like (json). Use-f
for its shorthand.