mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 15:11:07 +02:00
* Update README Let contributors know that docs will now be located in UDR * Add comments to each mdx doc Comment has been added to all mdx docs that are not partials * chore: added changelog changelog check failure * wip: removed changelog * Fix content errors * Doc spacing * Update website/content/docs/deploy/kubernetes/vso/helm.mdx Co-authored-by: Tu Nguyen <im2nguyen@users.noreply.github.com> --------- Co-authored-by: jonathanfrappier <92055993+jonathanfrappier@users.noreply.github.com> Co-authored-by: Tu Nguyen <im2nguyen@users.noreply.github.com>
46 lines
1.5 KiB
Plaintext
46 lines
1.5 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.
|
|
---
|
|
|
|
> [!IMPORTANT]
|
|
> **Documentation Update:** Product documentation, which were located in this repository under `/website`, are now located in [`hashicorp/web-unified-docs`](https://github.com/hashicorp/web-unified-docs), colocated with all other product documentation. Contributions to this content should be done in the `web-unified-docs` repo, and not this one. Changes made to `/website` content in this repo will not be reflected on the developer.hashicorp.com website.
|
|
|
|
# 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](/vault/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](/vault/docs/commands)
|
|
included on all commands.
|