open-vault/website/content/docs/commands/policy/delete.mdx
Ashlee M Boyer f3df55ad58
docs: Migrate link formats (#18696)
* Adding check-legacy-links-format workflow

* Adding test-link-rewrites workflow

* Updating docs-content-check-legacy-links-format hash

* Migrating links to new format

Co-authored-by: Kendall Strautman <kendallstrautman@gmail.com>
2023-01-25 16:12:15 -08:00

31 lines
760 B
Plaintext

---
layout: docs
page_title: policy delete - Command
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":
```shell-session
$ vault policy delete my-policy
```
## Usage
There are no flags beyond the [standard set of flags](/vault/docs/commands)
included on all commands.