Skip to main content

Remove Secrets

Delete one or more items from a vault.

General Usage:

slv vault --vault <PATH_TO_VAULT> rm [flags]

Flags:

FlagArgumentsRequiredDefaultDescription
--nameString (comma-separated or repeated)TrueNAName(s) of the item(s) (keys) to delete
--vaultStringTrueNAPath to the SLV Vault file
--helpNoneNANAHelp text for slv vault rm

Usage:

slv vault --vault <PATH_TO_VAULT> rm --name <ITEM_KEY>[,<ITEM_KEY>...]

Example:

$ slv vault --vault test.slv.yaml rm --name my_secret
Successfully deleted the secrets: [my_secret] from the vault: test.slv.yaml

$ slv vault --vault test.slv.yaml rm --name secret1,secret2
Successfully deleted the secrets: [secret1 secret2] from the vault: test.slv.yaml

See Also