2017-09-08 02:13:20 +00:00
|
|
|
---
|
2020-01-18 00:18:09 +00:00
|
|
|
layout: docs
|
|
|
|
page_title: delete - Command
|
|
|
|
sidebar_title: <code>delete</code>
|
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
|
|
|
|
|
2018-08-22 18:26:21 +00:00
|
|
|
Remove data in the static secrets engine:
|
2017-09-08 02:13:20 +00:00
|
|
|
|
|
|
|
```text
|
|
|
|
$ vault delete secret/my-secret
|
|
|
|
```
|
|
|
|
|
|
|
|
Uninstall an encryption key in the transit backend:
|
|
|
|
|
|
|
|
```text
|
|
|
|
$ vault delete transit/keys/my-key
|
|
|
|
```
|
|
|
|
|
|
|
|
Delete an IAM role:
|
|
|
|
|
|
|
|
```text
|
|
|
|
$ vault delete aws/roles/ops
|
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2020-01-22 20:05:41 +00:00
|
|
|
There are no flags beyond the [standard set of flags](/docs/commands)
|
2017-09-08 02:13:20 +00:00
|
|
|
included on all commands.
|