API for automated Orion's agent removal

Hello All,

I would like to know if there's any API that we can use to automate the nodes removal in Orion? We have a "marketplace" tool where people can build/decomm their servers and whenever they initiated the decomm process we would like the "marketplace" to run the API/script to get the nodes removed from Orion automatically (to avoid false alarm being triggered from Orion once the server has been destroyed).

I'm trying to look at this APIs but wanted to know if the above process is doable. Thank you in advance for your comments:- 


BulkDelete Request

POST https://localhost:17778/SolarWinds/InformationService/v3/Json/BulkDelete HTTP/1.1
Authorization: Basic YWRtaW46
User-Agent: curl/7.20.0 (i386-pc-win32) libcurl/7.20.0 OpenSSL/0.9.8l zlib/1.2.3
Host: localhost:17778
Accept: */*
Content-Type: application/json
Content-Length: 232