open-vault/website/content/docs/commands/delete.mdx
Yoko Hyakuna e9f18bdad7
Elaborate the correlation between CLI and API (#15056)
* Add command help info

* Explain CLI and API correlation

* Update the heading level

* Updated the command example with more description

* Update website/content/docs/commands/index.mdx

Co-authored-by: Loann Le <84412881+taoism4504@users.noreply.github.com>

* Update website/content/docs/commands/index.mdx

Co-authored-by: Loann Le <84412881+taoism4504@users.noreply.github.com>

* Update website/content/docs/commands/index.mdx

Co-authored-by: Loann Le <84412881+taoism4504@users.noreply.github.com>

* Incorporate review feedback

Co-authored-by: Loann Le <84412881+taoism4504@users.noreply.github.com>
2022-04-21 09:17:24 -07:00

43 lines
1 KiB
Plaintext

---
layout: docs
page_title: delete - Command
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 (wrapper command for HTTP DELETE). The behavior of "delete" is delegated to
the backend corresponding to the given path.
## Examples
Remove data in the static secrets engine:
```shell-session
$ vault delete secret/my-secret
```
Uninstall an encryption key in the transit backend:
```shell-session
$ 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-docs/secret/transit#update-key-configuration)
Delete an IAM role:
```shell-session
$ vault delete aws/roles/ops
```
## Usage
There are no flags beyond the [standard set of flags](/docs/commands)
included on all commands.