delete
Examples
$ vault delete secret/my-secret$ vault delete transit/keys/my-key$ vault delete aws/roles/opsUsage
Last updated
The delete command deletes secrets and configuration from Vault at the given path (wrapper command for HTTP DELETE). The behavior of "delete" is delegated to the backend corresponding to the given path.
Remove data in the static secrets engine:
$ vault delete secret/my-secretUninstall an encryption key in the transit backend:
$ vault delete transit/keys/my-keyNote: changing the deletion_allowed parameter to true is necessary for the key to be successfully deleted, you can read more on key parameters here
Delete an IAM role:
$ vault delete aws/roles/opsThere are no flags beyond the standard set of flags included on all commands.
Last updated