NetXMS icon

NetXMS

Interact with the NetXMS network monitoring and management system

Event Template → Delete

AI-generated

Summary

Deletes a user-defined event template from the NetXMS server by its numeric event code, via a DELETE request to /v1/event-templates/{eventCode}.

Inputs

  • Event Code (required) — Numeric event code of the template to delete. The operation description says only user-defined templates (event code ≥ 100000) can be deleted. The node doesn't check this itself, so the server enforces it.

Output shape

One item per input item, containing a confirmation object: { success: true, eventCode }.

The server's response body is discarded, so the output doesn't contain the deleted template's details. If the request fails (for example, the code doesn't exist or is a system event), the node throws an error, or emits { error: message } for that item when Continue On Fail is enabled. The node logs in with the NetXMS credentials at the start of each execution.

Examples

Example 1: Remove a custom event template that is no longer used.

Resource: Event Template; Operation: Delete; Event Code: 100042

Example 2: Delete a template whose code comes from an earlier node in the workflow.

Resource: Event Template; Operation: Delete; Event Code: expression such as {{ $json.code }}

Links

Discussion