vlt secrets delete
secrets delete command deletes a secret in an application.
Delete the secret named "expiration" stored in the "company-card" application.
$ vlt secrets delete --app-name="company-card" expiration Successfully deleted secret
If the CLI is already configured to point to the "company-card" application via
vlt init, you can omit the
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
$ vlt secrets delete [options] secret_name
(string: "")- HCP organization that the application is in. Use
-ofor its shorthand.
(string: "")- HCP project that the application is in. Use
-pfor its shorthand.
(string: "")- The application that the secret is in. Use
-afor its shorthand.
(string: "")- The output format you would like (json). Use
-ffor its shorthand.