Title: New function: Delete users without listings
Last modified: August 21, 2016

---

# New function: Delete users without listings

 *  Resolved [raquel_p](https://wordpress.org/support/users/raquel_p/)
 * (@raquel_p)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/new-function-delete-users-without-listings/)
 * Hi,
 * I suggest setting up an important feature: This plugin, to release the registration
   of wordpres, just allowing to create thousands of fruitless users. Thus, it would
   be interesting an option to delete users without listings in the directory, with
   a range selection by registration date (like phpBB).
 * As an example, on my system there by now, since installing the plugin, 1,221 
   entries. Of these, just over 20 has listings. Many others just pollute the database.
   As the user panel is not possible to see how many posts each user has is humanly
   impossible to delete those who have posted anything.
 * It is important, however, check which users have any post, not just the directory
   listings. To avoid the risk of deleting important system users as a whole.
 * [http://wordpress.org/plugins/business-directory-plugin/](http://wordpress.org/plugins/business-directory-plugin/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * (@businessdirectoryplugin)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/new-function-delete-users-without-listings/#post-4349032)
 * Hi raquel_p,
 * That’s a good suggestion. Just so I understand here–did you try deleting users
   from the database and then also tell WP to delete the posts? And after that, 
   did you find that it deleted BD listings as well?
 * If they are a spam user, wouldn’t you want to get rid of their listings as well?
   Or am I missing the use case here?
 *  Thread Starter [raquel_p](https://wordpress.org/support/users/raquel_p/)
 * (@raquel_p)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/new-function-delete-users-without-listings/#post-4349034)
 * Hi, you are missing the use case here.
 * I didn’t try anything. I just need bulk delete the registered users that not 
   created a listing. Not all are spammers. Many just gave up the listing in the
   middle of the process and your user registry is cluttering the database
 * Currently, in the user panel, you cannot know who has a listing and who does 
   not. The wordpress recognizes just who wrote a regular post, not who wrote a 
   listing.
 * I founded a solution for this problem with [Inactive User Deleter plugin](http://wordpress.org/plugins/inactive-user-deleter/).
   But my suggestion remains, since it is the BD plugin that causes the problem.
 *  Plugin Author [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * (@businessdirectoryplugin)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/new-function-delete-users-without-listings/#post-4349074)
 * HI raquel,
 * Well, technically, we are using WP’s user mechanism so we’re not cluttering the
   database any more than it would be if we weren’t installed. If you’re talking
   about just users who didn’t post, that should be completely cleanable using the
   plugin above. Since they didn’t post anything in BD, I’m confused about what 
   else is left behind besides the user account itself?
 * Do you have Require Registration on for your BD listings? Or do you allow anonymous
   posting? If you allow the latter, that will create guest users (because a post
   has to belong to someone), but those users will only have the one post. Is that
   what you mean?
 *  Thread Starter [raquel_p](https://wordpress.org/support/users/raquel_p/)
 * (@raquel_p)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/new-function-delete-users-without-listings/#post-4349075)
 * You are wrong. If I only use wordpress, I will inactivate records. They are only
   activated because of the BD plugin. Or I want to make active, only to have spammers?(
   I dont use comments in my website)
 * Only the users records are left in the database. It seems little, but join thousands
   and we have a problem. I do not allow anonymous records. That seems stupid if
   I make money with my directory.
 * The plugin I mentioned solves the problem. But I believe that it should not be
   necessary. Just that. It solved my current problem, but the suggestion remains.
   I believe it will not only be me who will benefit from the functionality.
 *  Plugin Author [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * (@businessdirectoryplugin)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/new-function-delete-users-without-listings/#post-4349099)
 * Hi raquel,
 * I’d still like the answer to these questions, as I think it’s relevant to understanding
   what is being “left behind”.
 * Do you have Require Registration on for your BD listings? Or do you allow anonymous
   posting? If you allow the latter, that will create guest users (because a post
   has to belong to someone), but those users will only have the one post. Is that
   what you mean?
 *  Thread Starter [raquel_p](https://wordpress.org/support/users/raquel_p/)
 * (@raquel_p)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/new-function-delete-users-without-listings/#post-4349100)
 * > I do not allow anonymous records.
 *  Plugin Author [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * (@businessdirectoryplugin)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/new-function-delete-users-without-listings/#post-4349109)
 * We’ll check into it. Thanks Raquel.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘New function: Delete users without listings’ is closed to new replies.

 * ![](https://ps.w.org/business-directory-plugin/assets/icon-256x256.png?rev=2901888)
 * [Business Directory Plugin - Easy Listing Directories for WordPress](https://wordpress.org/plugins/business-directory-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/business-directory-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/business-directory-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/business-directory-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/business-directory-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/business-directory-plugin/reviews/)

## Tags

 * [delete users](https://wordpress.org/support/topic-tag/delete-users/)

 * 7 replies
 * 2 participants
 * Last reply from: [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/new-function-delete-users-without-listings/#post-4349109)
 * Status: resolved