Re: how to delete spam comments from the database
There was this:
https://bbpress.org/forums/topic/permanently-deleting-topocs-and-posts
If post_status 2 is a reply marked as spam, then that query would take care of it. But I think it could strand information in other tables that is related to that reply. I’m thinking specifically where the last reply is attributed to a topic or a user. Not sure what happens when you delete the reply that is referred to in another table.