XF 1.1 Deleting old users


We have a large number of signup on our forums for people that never come back. I am trying to find a way to routinely delete users that have not been seen for a period of time.

I have looks through the admin panel and cant fin any way apart from searching all users and sorting by latest activity then deleting them one by one.

Is there a fast way of doing this that can also be scheduled as a cron entry?

I am willing to get my hands dirty and write an addon to do it if needed but need some guidance to find the last activity date in the database. Also if I delete a user out of xf_user what impact that has on posts that have been created by a deleted user.

I am sure some of the larger forums out there have battled this is the past.

Any help would be appreciated.


Jake Bunce

XenForo moderator
Staff member
There is no mass pruning feature for users. This is a common request. You will probably see this feature in a future version. But in the meantime you have to delete them one-by-one.

When you delete a user their posts remain. Their username remains on the posts but it's no longer linked to an account. It becomes a "guest" post.