Thanks @pfaffman for the bulk deletion snippet you wrote using the Rails find_each method. Great work.
After bulk back-end deletion, is there a way to update the topic count in categories? Right now, I have an empty topic list which is ready for fresh import but the topic count in my categories still shows a count of thousands.And when I re-import fresh, the number only grows.
I waited overnight since I am not sure if there is a cron job or background task in Discourse that updates the counts. (I’m new to Discourse)
I feel like there is a command to refresh_topic_count or something…