Skip to content

Delete Policy

verifiedpermissions_delete_policy R Documentation

Deletes the specified policy from the policy store

Description

Deletes the specified policy from the policy store.

This operation is idempotent; if you specify a policy that doesn't exist, the request response returns a successful ⁠HTTP 200⁠ status code.

Usage

verifiedpermissions_delete_policy(policyStoreId, policyId)

Arguments

policyStoreId

[required] Specifies the ID of the policy store that contains the policy that you want to delete.

To specify a policy store, use its ID or alias name. When using an alias name, prefix it with ⁠policy-store-alias/⁠. For example:

  • ID: PSEXAMPLEabcdefg111111

  • Alias name: policy-store-alias/example-policy-store

To view aliases, use list_policy_store_aliases.

policyId

[required] Specifies the ID of the policy that you want to delete.

You can use the policy name in place of the policy ID. When using a name, prefix it with ⁠name/⁠. For example:

  • ID: SPEXAMPLEabcdefg111111

  • Name: name/example-policy

Value

An empty list.

Request syntax

svc$delete_policy(
  policyStoreId = "string",
  policyId = "string"
)