open-vault/website/content/docs/commands/delete.mdx

43 lines
1 KiB
Plaintext
Raw Normal View History

2017-09-08 02:13:20 +00:00
---
layout: docs
page_title: delete - Command
2017-09-08 02:13:20 +00:00
description: |-
The "delete" command deletes secrets and configuration from Vault at the given
path. The behavior of "delete" is delegated to the backend corresponding to
the given path.
---
# delete
The `delete` command deletes secrets and configuration from Vault at the given
path. The behavior of "delete" is delegated to the backend corresponding to the
given path.
## Examples
Remove data in the static secrets engine:
2017-09-08 02:13:20 +00:00
```shell-session
2017-09-08 02:13:20 +00:00
$ vault delete secret/my-secret
```
Uninstall an encryption key in the transit backend:
```shell-session
2017-09-08 02:13:20 +00:00
$ vault delete transit/keys/my-key
```
Note: changing the `deletion_allowed` parameter to `true` is necessary for the
key to be successfully deleted, you can read more on key parameters [here](/api/secret/transit#update-key-configuration)
2017-09-08 02:13:20 +00:00
Delete an IAM role:
```shell-session
2017-09-08 02:13:20 +00:00
$ vault delete aws/roles/ops
```
## Usage
There are no flags beyond the [standard set of flags](/docs/commands)
2017-09-08 02:13:20 +00:00
included on all commands.