A new platform for documentation and tutorials is launching soon.
We are migrating Vault documentation into HashiCorp Developer, our new developer experience.
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
Note that it is not possible to delete the "default" or "root" policies. These are built-in policies.
Delete the policy named "my-policy":
$ vault policy delete my-policy
There are no flags beyond the standard set of flags included on all commands.