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

RelatedItems → Delete related items

AI-generated

Summary

Delete all related items associated with a specific entity type and entity ID in NinjaOne.

Inputs

  • entityType (required) — Select the entity type from predefined options such as ORGANIZATION, DOCUMENT, NODE, etc.
  • entityId (required) — Specify the numeric ID of the entity whose related items you want to delete.
  • options — Optional settings including custom JSON body to send with the request, custom HTTP headers, query-string filters, batching parameters (items per batch and interval), debug mode to capture request details, pagination settings for handling multiple pages, and request timeout in milliseconds.

Output shape

A single response object confirming the deletion result or error details.

The operation issues a DELETE request to the endpoint /v2/related-items/{entityType}/{entityId}, returning the API response as received. When batching is enabled, multiple requests may be made in sequence according to batch settings. Debug information can be included if enabled. Pagination options exist but typically are not applicable for a deletion operation.

Links

Discussion