# 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 <a href="#examples" id="examples"></a>

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

Delete an IAM role:

```shell-session
$ vault delete aws/roles/ops
```

### Usage <a href="#usage" id="usage"></a>

There are no flags beyond the standard set of flags included on all commands.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.enclaive.cloud/vault/cli/delete.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
