Skip to main content

Remove a Secret

Delete an item from a vault.

General Usage:

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

Flags:

FlagArgumentsRequiredDefaultDescription
--nameStringFalseNoneName of the item (key) 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>

Example:

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