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

DocumentTemplates → Delete a document template

AI-generated

Summary

Delete a specified document template by its ID, removing it from the NinjaOne system.

Inputs

  • Document Template Id (required) — The unique identifier of the document template to delete.
  • Options — Optional parameters including custom request body JSON (merged with main request data), custom HTTP headers, query-string filters, batching settings to control the number and timing of requests, debugging output toggle, pagination configuration (though pagination typically applies to list operations), and request timeout in milliseconds.

Output shape

a JSON object containing the API response indicating the result of the delete operation, typically an empty body or a success status confirmation.

The output may include a debug field when debugging is enabled, showing full request details. This operation sends a DELETE request to the /v2/document-templates/{documentTemplateId} endpoint. Custom body values override standard parameters if provided.

Examples

Example 1: Deleting a single document template

Provide the Document Template Id of the template to delete; optionally add custom headers or enable debug to inspect the API request and response.

Links

Discussion