Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do I bulk close & delete a huge number of alerts?

CompletelyIrrelevant
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 24, 2019

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?

2 answers

1 accepted

3 votes
Answer accepted
Samir
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 25, 2019

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.

3 votes
David
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 23, 2022

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events