Hi Andreas, I have the same problem here. SOAR is incredibly slow to create/delete incidents, I really don't know why.
Using the REST API, from my experience, you don't add much throughput for thread pools > 5.
One thing I'd try is to dump the database contents before removing one incident, then remove it, and then take another dump and compare both, so you could figure out yourself what tables are affected and how.
Then you could just write your own set of SQL commands to run, after taking down all the resilient services first, of course. You can access the DB directly using a command such as sudo -u postgres -i psql co3
Not an easy task, but without a really fast batch delete feature, this is the best idea that comes to my mind.
Of course, this is not a procedure recommended by IBM, take it on your own risk.
------------------------------
Leonardo Kenji Shikida
------------------------------
Original Message:
Sent: Fri October 29, 2021 05:22 AM
From: Andreas Fiehn
Subject: Bulk deleting incidents in Resilient
Hello
I need to be able to delete all incidents in Resilient.
I tried using the following API endpoint, but if I provide more than a few 100 incident ids it takes forever. I tried providing around 7000 incident ids and Resilient stopped responding.

Is there a way to clear the incident database quickly? We need to do this more than once, since we clone our production environment to a test environment from time to time, but are not allowed to have incident data there.
Right now the deletion through API takes hours and we have to keep it running over night.
------------------------------
Andreas Fiehn
------------------------------