Actions31
- Alert Actions
- Application Actions
- Billing Actions
- Device Actions
- Fact Actions
- Instruction Actions
- Policy Actions
Policy → Delete
AI-generatedSummary
Delete a policy by its ID
Inputs
- policyId (required) — The ID of the policy to delete
Output shape
object indicating deletion success (typically contains a success boolean, may include additional API response data)
If enabled, failures are swallowed and an error object is returned; otherwise errors propagate.
Examples
Example 1: Delete a single policy by ID
Set resource='policy', operation='delete', policyId='
Example 2: Delete multiple policies in a workflow
Iterate over a list, setting policyId for each iteration
Example 3: Delete a policy as part of a larger automation
Combine policy deletion with subsequent device or alert operations in the same workflow