Ques/Help Properly remove orphaned threads

M

mjda

Guest
I have hundreds of threads, from a conversion, that have no posts with them. They don't even have the original post data associated with them. These are causing errors with the enhanced search, among other things.

So, I want to delete all those threads. What I'm thinking about doing is creating a script that will grab all threads with 0 replies, check to see if it has any associated posts and, if not, use $thread->delete();.

My question is, would this be the appropriate way to...

Read more

Continue reading...