Skip to content

deleteSecurityPolicy

Delete an existing policy.

Arguments

Argument Type Description
policyId (required) UUID! Policy ID.
policyType (required) PolicyType! Policy type.
keepViolationsOpenArg Boolean Whether to keep related violations open if the policy is closed.

Returns

Void

Sample

mutation DeleteSecurityPolicy($policyId: UUID!, $policyType: PolicyType!) {
  deleteSecurityPolicy(
    policyId: $policyId
    policyType: $policyType
  )
}
{
  "policyId": "00000000-0000-0000-0000-000000000000",
  "policyType": "POLICY_TYPE_CROWDSTRIKE"
}
{
  "data": {
    "deleteSecurityPolicy": "example-string"
  }
}