2017-09-08 02:10:48 +00:00
|
|
|
---
|
2020-01-18 00:18:09 +00:00
|
|
|
layout: docs
|
|
|
|
page_title: policy delete - Command
|
|
|
|
sidebar_title: <code>delete</code>
|
2017-09-08 02:10:48 +00:00
|
|
|
description: |-
|
|
|
|
The "policy delete" command deletes the policy named NAME in the Vault server.
|
|
|
|
Once the policy is deleted, all tokens associated with the policy are affected
|
|
|
|
immediately.
|
|
|
|
---
|
|
|
|
|
|
|
|
# policy delete
|
|
|
|
|
|
|
|
The `policy delete` command deletes the policy named NAME in the Vault server.
|
|
|
|
Once the policy is deleted, all tokens associated with the policy are affected
|
|
|
|
immediately.
|
|
|
|
|
|
|
|
Note that it is not possible to delete the "default" or "root" policies. These
|
|
|
|
are built-in policies.
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
Delete the policy named "my-policy":
|
|
|
|
|
2020-05-21 17:18:17 +00:00
|
|
|
```shell-session
|
2017-09-08 02:10:48 +00:00
|
|
|
$ vault policy delete my-policy
|
|
|
|
```
|
|
|
|
|
|
|
|
## 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:10:48 +00:00
|
|
|
included on all commands.
|