What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags

View all Tags

API Auto Delete Sensor Syntax



Hi, We have a scenario in our environment where I want to delete a sensor when its status changes to down. I know that deleting a sensor can be done through the API (I have used the API to auto-acknowledge certain sensors when they go down). I found the following information in the manual and have verified that it deletes a sensor when I replace the "objectid" with the ID of the sensor.


The issue I am having is that I can't figure out the syntax for the API call to make it grab the Senor ID from the sensor that I have applied the notification template to. How would I adjust it to do this?

An example of a notification template that does this would be my Auto-Acknowledge one below. It pulls the sensorid into the API call it makes.


api delete notification

Created on Jul 1, 2019 3:30:32 PM

1 Reply



Check out PRTGapi's Get-Trigger:

Simply check for the corresponding triggers for the Sensors returned via Get-Sensor -Status Down and you should be good to go :)

PRTGapi | Feature Requests

Kind regards,
Stephan Linke, Tech Support Team

Created on Jul 1, 2019 6:35:21 PM by  Stephan Linke [Paessler Support]

Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.