I have a large number of alerts that have been emailed to OpsGenie via a rogue program that was configured incorrectly.
I would like to delete all the alerts (10,000 of them) however I can only ack / close 1000 alerts at a time.
How do I bulk delete alerts?
Hi @CompletelyIrrelevant - the only way to achieve this is through the API. You can create a script to list all alerts via API, then loop through each one and delete it via API.
Hello I created a small Python script to get all alerts closed and later delete it, here if is interesting from any of you :-)
https://github.com/dalvarezquiroga/opsgenie_cleaner
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.