In one of my Drupal 6 installations there are thousands of users who have registered with the site but haven't contributed. I want to do a DB cleanup and delete these users. Is there a way to filter it such that:
I want to delete the users who:
* haven't been active for more than 1 years
* AND have no posts or comments published on the site
User management site (/admin/user/user) doesn't offer this kind of granularity. Any suggestions?