Skip to content

Delete Policy Template

verifiedpermissions_delete_policy_template R Documentation

Deletes the specified policy template from the policy store

Description

Deletes the specified policy template from the policy store.

This operation also deletes any policies that were created from the specified policy template. Those policies are immediately removed from all future API responses, and are asynchronously deleted from the policy store.

Usage

verifiedpermissions_delete_policy_template(policyStoreId,
  policyTemplateId)

Arguments

policyStoreId

[required] Specifies the ID of the policy store that contains the policy template 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.

policyTemplateId

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

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

  • ID: PTEXAMPLEabcdefg111111

  • Name: name/example-policy-template

Value

An empty list.

Request syntax

svc$delete_policy_template(
  policyStoreId = "string",
  policyTemplateId = "string"
)