How do I delete tests/folders using HMS Script?

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
kevinkenny
Posts: 16
Joined: Tue Jan 12, 2010 2:44 pm

How do I delete tests/folders using HMS Script?

Post by kevinkenny »

Is there a way to delete tests / folders using HMS Script or the import file commands?

We're integrating with our hosting platform provisioning system and are automating adding new tests to HM. However when customer hosting services are no longer required (e.g. customer closes account for dedicated server or website) we need to be able to delete the HTTP tests we create for them.

At the moment the only way seems to be:

a. Recreate all tests (not ideal because there could be ~5000-6000 tests)
b. Disable tests when no longer required - again not ideal because they'll just litter the HM server with dead tests.

I'm using HostMonitor 8.32.

Thanks
Kevin
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You may try undocumented "DeleteTest" command.

Regards
Alex
kevinkenny
Posts: 16
Joined: Tue Jan 12, 2010 2:44 pm

Post by kevinkenny »

KS-Soft wrote:You may try undocumented "DeleteTest" command.

Regards
Alex
Excellent!...Thanks for the prompt response Alex.
Post Reply