deletePolicy
inline suspend fun VerifiedPermissionsClient.deletePolicy(crossinline block: DeletePolicyRequest.Builder.() -> Unit): DeletePolicyResponse
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.
Samples
fun main() {
//sampleStart
// The following example deletes the specified policy from its policy store.
val resp = verifiedPermissionsClient.deletePolicy {
policyId = "9wYxMpljbbZQb5fcZHyJhY"
policyStoreId = "C7v5xMplfFH3i3e4Jrzb1a"
}
//sampleEnd
}