Discussion in 'XenForo Questions and Support' started by TazDevilLooney, Jul 22, 2011.
How do i list all posts that's been "removed from public view" so i can permanently delete them?
There's no way of doing that in the ACP.
You can however run a query to delete all entries in the xf_post table which have a message_state of deleted.
That sounds like a plan, what would the command be?
DELETE from xf_post WHERE message_state='deleted'
Take a backup first.
Nice, i'll backup and get back to you.
Works grate, thanks Brogan
Awesome site !
I love it ... very clean and unique !
A cracking guess Brogan .
Thank you for you kind words Digital Doctor i appreciate the feedback.
What about any attachments those posts may have had?
The users have the option to delete there own posts. I was just cleaning up so there should be no working attachments in the deletes anyway.
But to answer you question i just don't know.
Sorry to bump this, but I just followed it and also had to run the following as well. Otherwise, where the "removed form public view" posts were the only thing in the thread, the threads stayed behind still.
DELETE from xf_thread WHERE discussion_state='deleted'
I suggest using the Show Deleted add-on:
Great addon! Will use from now on. Thanks!
Separate names with a comma.