26 Sep 2023 03:41 PM
Hi Folks,
Is there a way to delete all expired maintenance window via API.
I gone through few thread on community and suggestion was to filter on expired maintenance window and delete from UI itself.
But dilemma is, due to huge number of maintenance window the page is not at all loading hence I'm looking to pull all expired MW via API and delete it.
Can someone please suggest.
Regards,
AK
Solved! Go to Solution.
26 Sep 2023 04:51 PM
You can use the Dynatrace API to automate the process, but you will need to build the logic into whatever script or job you decide to run to delete them.
So the steps would be:
It's a bit complicated, but it's the only way as the maintenace window doesn't have an expired field or something else we can check apart from the one mentioned above.
29 Sep 2023 02:37 PM
Yep this works. @victor_balbuena thanks for quick help