Deleting 40K topics

How did you get into a situation where you need to delete 40,000 topics? Why are these topics there?

At any rate, you should be deleting them from the command line, browser automation isn’t a good way to approach this.