XF 1.5 Fine-tuned delete controls

JackieChun

Active member
Hello,

I am trying to do either of the following two things:

1) Hard-delete all soft-deleted posts by a specific user, OR
2) Hard-delete all soft-deleted posts in a specific thread.

Is this currently possible via AdminCP?

Thanks
 

Mike

XenForo developer
Staff member
Neither of those options are exposed though the control panel. They'd have to be manually identified and removed.
 

JackieChun

Active member
Thanks @Mike. Is there another way to do this? I need to give one specific user (who is actually a bot) an ability to delete his own messages on a regular basis. Right now he is only able to soft-delete them, and the deleted posts are littering the forum and accumulating fast.

Is there perhaps a clever way to promote him to moderator so he can hard-delete his own posts but not have any other moderator privileges, like deleting other people's posts?
 

Mike

XenForo developer
Staff member
Short of doing something custom to fit your specific needs, I think manual removal would really be the only way.
 

JackieChun

Active member
This bot posts 6 times a day (by design), so manually cleaning up after him is not an option. Can anyone help with the MySQL query to clean up what's already there and can be run once in a while? Something that would satisfy both option 1 and 2 above:

Hard-delete all soft-deleted posts by a specific user posted in a specific thread
 

Brogan

XenForo moderator
Staff member
Threads/posts can't be deleted with a simple query - there is too much data to update.

You will have to have a custom add-on developed.
 

JackieChun

Active member
Has anything changed from XenForo 1.5 to 2.0 that would make this easier? Still haven't figured out a way to accomplish this.
 
Top