You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi,
I wrote a Groovy script that delete all projects, except the ones who are in an exclusion list (to build a sandbox).
Tried it on my local Jira installation, works fine. But on our staging server, which have more than 1500 projects, it's slow as hell. Deleting projects with projectService.deleteProject takes a minute per project!
Tried to find why, and saw this:
https://shaakunthala.wordpress.com/2016/03/27/jira-bulk-delete-issues-using-groovy/
Which have a similar script, but the author mentions that he delete the indices before deleting the projects. Tried that, sadly it's still very slow (20 deleted projects in 10 minutes).
I guess deleting projects directly in the bd, while Jira is down of course, will be faster, but I'm pretty sure it will create havoc.
Anyone have seen this problem.
True. I did a test with deleting the index before deleting the projects, and also without deleting the index, and the difference is minimal.
For the record, it took about 16 hours to delete 1085 projects.