deletePolicyTemplate

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.

Samples


fun main() { 
   //sampleStart 
   // The following example deletes a policy template. Before you can perform this operation, you must
// first delete any template linked policies that were instantiated from this policy template. To delete
// them, use DeletePolicy.
val resp = verifiedPermissionsClient.deletePolicyTemplate {
    policyStoreId = "C7v5xMplfFH3i3e4Jrzb1a"
    policyTemplateId = "PTEXAMPLEabcdefg111111"
} 
   //sampleEnd
}