NinjaOne icon

NinjaOne

Ninja One Public API documentation. <br><br>See also: <br> <a href="https://resources.ninjarmm.com/API/Ninja+RMM+Public+API+v2.0.5+Device+Filter+Syntax.pdf">Device Filter syntax</a><br><a href="https://app.ninjarmm.com/apidocs-beta/core-resources/articles/webhooks/overview">Webhooks</a>

Actions309

Management → Delete policy condition

AI-generated

Summary

Delete a specific policy condition by its Policy Id and Condition Id via the NinjaOne API.

Inputs

  • policy_id (required) — The numeric ID of the policy from which the condition will be deleted.
  • condition_id (required) — The string ID of the condition to delete within the specified policy.
  • options — Optional settings including custom JSON body, HTTP headers, query filters, batching, debug mode, pagination, and timeout controls to customize the request.

Output shape

a JSON object representing the API response confirming deletion or indicating failure.

The response shape depends on the NinjaOne API's delete operation response; debug information is optionally included if enabled. Pagination and batching settings are available but generally not applicable for a single delete operation.

Examples

Example 1: Delete the condition with ID 'abc123' from policy number 789.

Set 'policy_id' to 789 and 'condition_id' to 'abc123'. Optionally adjust 'options' for headers or debug. Invoke the node to send a DELETE request to /v2/policies/789/condition/abc123.

Links

Discussion