Bulk Delete WordPress Plugin

download
206,255 downloads

Bulk Delete is a WordPress Plugin which can be used to delete posts in bulk from selected categories, tags, post types or custom taxonomies. This Plugin can also delete all drafts, post revisions, scheduled posts or pages and users based on user role.

Features

Deleting posts

This Plugin supports the following bulk delete options for deleting posts

  • Delete posts by category
  • Delete posts by tags
  • Delete posts by custom taxonomies
  • Delete posts by custom post types
  • Delete posts by url
  • Delete posts by custom field (Available as a Pro addon)
  • Delete posts by title (Available as a Pro addon)
  • Delete all draft posts
  • Delete all pending posts
  • Delete all private posts
  • Delete all scheduled posts

All the above options support the following filters

  • Post date greater than X days
  • Post date less than X days
  • Only public posts
  • Only private posts
  • Restrict to first N posts
  • Delete permanently or just move to trash
  • Schedule deletion of posts automatically (Available as a Pro addon)

Deleting pages

  • Delete all published pages
  • Delete all draft pages
  • Delete all pending pages
  • Delete all private pages
  • Delete all scheduled pages

Like posts, all the above options support the following filters as well

  • Post date greater than X days
  • Post date less than X days
  • Only public posts
  • Only private posts
  • Restrict to first N posts
  • Delete permanently or just move to trash
  • Schedule deletion of posts automatically (Available as a Pro addon)

Deleting post revisions

  • Delete all post revisions

Deleting users

  • Delete users based on user role

Deleting posts by content and page views

Coming soon :)

As you can see, the Plugin provide comprehensive options and filters to perform bulk deletion.

If you looking for just moving posts, instead of deleting, then use Bulk Move Plugin instead.

Pro Addons

The following are the list of pro addons that are currently available for purchase to add more features to the Plugin.

  • Delete posts by custom field – Adds the ability to delete posts based on custom field. More details. Buy now
  • Delete posts by title – Adds the ability to delete posts based on title. More details. Buy now
  • Schedule auto delete of Posts by Categories – Adds the ability to schedule auto delete of posts based on categories. More details. Buy now
  • Schedule auto delete of Posts by Tags – Adds the ability to schedule auto delete of posts based on tags. More details. Buy now
  • Schedule auto delete of Posts by Custom Taxonomies – Adds the ability to schedule auto delete of posts based on custom taxonomies. More details. Buy now
  • Schedule auto delete of Posts by Custom post types – Adds the ability to schedule auto delete of posts based on custom post types. More details. Buy now
  • Schedule auto delete of Pages – Adds the ability to schedule auto delete of pages. More details. Buy now
  • Schedule auto delete of Posts by Post Status – Adds the ability to schedule auto delete of posts based on post status like drafts, pending posts, scheduled posts etc. More details. Buy now
  • Schedule auto delete of users by User Role – Adds the ability to schedule auto delete of users based on user role. More details. Buy now

Development

The development of the Plugin happens over at github. If you want to contribute to the Plugin, fork the project at github and send me a pull request.

If you are not familiar with either git or Github then refer to this guide to see how fork and send pull request.

If you are looking for ideas, then you can start with one of the following TODO items :)

TODO

The following are the features that I am thinking of adding to the Plugin, when I get some free time. If you have any feature request or want to increase the priority of a particular feature, then let me know.

  • Bulk Delete posts based on page views
  • Bulk delete based on the presence/absence of a word
  • Bulk Delete empty posts
  • Bulk Delete posts based on users
  • Bulk delete comments
  • Delete images that are used by the posts that are being deleted
  • Bulk Delete sticky posts – Added in v4.4
  • Change the message based on the option the user has chosen – Added in v3.3
  • Expandable/collapsible taxonomies – Added in v3.3
  • Ability to choose the different sections that should be loaded – Added in v3.4
  • Bulk Delete by custom post types – Added in v3.5

Support

  • If you have found a bug/issue or have a feature request, then post them in github issues
  • If you have a question about usage or need help to troubleshoot, then post in WordPress forums or leave a comment in Plugins’s home page
  • If you like the Plugin, then kindly leave a review/feedback at WordPress repo page.
  • If you find this Plugin useful or and wanted to say thank you, then there are ways to make me happy :) and I would really appreciate if you can do one of those.
  • Checkout other WordPress Plugins that I have written
  • If anything else, then contact me in twitter.

Download

You can download the Plugin as a zip file from the WordPress official Plugin directory.

Screenshots

  1. bulk-delete screenshot 1

    The above screenshot shows how you can delete Posts by post status. You can choose between drafts, pending posts, scheduled posts, privates posts.

  2. bulk-delete screenshot 2

    The above screenshot shows how you can delete posts by category.

  3. bulk-delete screenshot 3

    The above screenshot shows how you can delete posts by tags.

  4. bulk-delete screenshot 4

    The above screenshot shows how you can delete posts by custom taxonomies.

  5. bulk-delete screenshot 5

    The above screenshot shows how you can delete pages by post status. You can choose between draft pages, pending pages, scheduled pages and privates pages.

  6. bulk-delete screenshot 6

    The above screenshot shows how you can schedule auto delete of posts. Note that this feature is available only when you buy pro addons.

  7. bulk-delete screenshot 7

    The above screenshot shows the scheduled auto delete jobs will be displayed. Note that this feature is available only when you buy pro addons.

  8. bulk-delete screenshot 8

    The above screenshot shows how you can enable/disable different sections of the Plugin.

Installation

Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.

FAQ

Q. After installing the Plugin, I just see a blank page.
A. This can happen if you have huge number of posts and your server is very underpowered. Check your PHP error log to see if there are any errors and correct them. The most common problems are script timeout or running out of memory. Change your PHP.ini file and increase the script timeout and/or amount of memory used by PHP process.

In particular try to change the following settings

  • max_execution_time = 600 – Maximum execution time of each script, in seconds
  • max_input_time = 30 – Maximum amount of time each script may spend parsing request data
  • memory_limit = 256M – Maximum amount of memory a script may consume

You can also try to disable different sections of the Plugin, if you have huge number of posts.

Q. How do I disable different sections of the Plugin
A. You can enable or disable different sections of the Plugin by choosing the required modules in the screen option. You can open screen options by clicking the link in the top right corner of the Plugin page.

Q. How do I know what are the current values for these options configured in my server?
A. Scroll down to the button of the Plugin page and you can see the current values of these options printed for your reference under the “Debug Information” heading

Q. Is it possible to restore the posts that I have deleted through the Plugin?
A. If you choose the option “Move to trash” then you can find them from trash. But if you choose “Delete permanently”, then it is not possible to retrieve the posts. So be very careful.

Q. Is it possible that some Plugin are not compatible with Bulk Delete?
A. Yes. If a Plugin rewrites the query vars by using add_filter( 'pre_get_posts' ) then it may be incompatible with this Plugin. The event calendar is one such Plugin.

I currently disable and enable the pre_get_posts filter if I find that “The event calendar” Plugin is installed. It is not ideal, but it gets the work done. If you find any other Plugin with which Bulk Delete doesn’t work, then let me know and I will try to see if I can add support through some hack like this.

Q. Is it possible to schedule deletion of posts
A. The ability to schedule deletion of posts is available as a pro addon.

Changelog

2014-01-26 – v4.4.3 – (Dev time: 1.5 hours)

  • Tweak: Ability to delete posts from non-public post types as well
  • Fix: Fix the height of the sidebar

2014-01-05 – v4.4.2 – (Dev time: 1.5 hours)

  • Fix: Deleting first x posts deletes all posts while deleting by category (#44)
  • Fix: Posts are moved to trash even if “Delete permanently” option is selected (#45)
  • Tweak: Move request processing code for deleting by custom field to addon

2013-12-18 – v4.4.1 – (Dev time: 0.5 hours)

  • Fix: Bulk Delete menu overrides other menus at the same position

2013-12-14 – v4.4 – (Dev time: 10 hours)

  • New: Ability to delete all published posts from “Post Status” module
  • New: Ability to delete all sticky posts from “Post Status” module
  • Tweak: Moved all option page to a separate top menu
  • Fix: Fix undefined notices and strict warnings
  • New: Ability to delete posts by title
  • Tweak: Tweak UI for WordPress 3.8

2013-12-08 – v4.3 – (Dev time: 2 hours)

  • New: Ability to delete custom post type posts by categories
  • New: Ability to delete custom post type posts by custom taxonomy
  • Fix: Fix link to “Custom Field” Addon

2013-11-11 – v4.2.2 – (Dev time: 1 hour)

  • Fix: Bug in deleting custom post types with hypen

2013-11-07 – v4.2.1 – (Dev time: 0.5 hours)

  • Explicitly mark static methods as static

2013-10-22 – v4.2 – (Dev time: 3 hours)

  • Add the ability to custom post type posts by post status

2013-10-12 – v4.1 – (Dev time: 6 hours)

  • Add the “delete by custom field” pro addon

2013-10-07 – v4.0.2 – (Dev time: 1 hours)

  • Fix issue in displaying meta boxes
  • Show taxonomy label instead of slug
  • Fix issue in deleting posts by custom taxonomy

2013-09-12 – v4.0.1 – (Dev time: 1 hours)

  • Fix JavaScript bug that prevented deleting posts by days and in batches

2013-09-09 – v4.0 – (Dev time: 25 hours)

  • Add the ability to delete users
  • Move menu items under tools

2013-07-07 – v3.6.0 – (Dev time: 2 hours)

  • Change minimum requirement to WordPress 3.3
  • Fix compatibility issues with “The event calendar” Plugin

2013-06-01 – v3.5 – (Dev time: 10 hours)

  • Added support to delete custom post types
  • Added Gujarati translations
  • Ignore sticky posts when deleting drafts

2013-05-22 – v3.4 – (Dev time: 20 hours)

  • Incorporated Screen API to select/deselect different sections of the page
  • Load only sections that are selected by the user

2013-05-11 – v3.3 – (Dev time: 10 hours)

  • Enhanced the deletion of posts using custom taxonomies
  • Added the ability to schedule auto delete of taxonomies by date
  • Cleaned up all messages that are shown to the user
  • Added on screen help tab

2013-05-04 – v3.2 – (Dev time: 20 hours)

  • Added support for scheduling auto delete of pages
  • Added support for scheduling auto delete of drafts
  • Fixed issue in deleting post revisions
  • Move post revisions to a separate section
  • Better handling of post count to improve performance
  • Moved pages to a separate section
  • Added ability to delete pages in different status
  • Added the option to schedule auto delete of tags by date
  • Fixed a bug which was not allowing categories to be deleted based on date

2013-04-28 – v3.1 – (Dev time: 5 hours)

  • Added separate delete by sections for pages, drafts and urls
  • Added the option to delete by date for drafts, revisions, future posts etc
  • Added the option to delete by date for pages

2013-04-27 – v3.0 – (Dev time: 10 hours)

  • Added support for pro addons
  • Added GUI to see cron jobs

v2.2.2 (2012-12-20) (Dev time: 0.5 hour)

  • Removed unused wpdb->prepare() function calls

v2.2.1 (2012-10-28) (Dev time: 0.5 hour)

  • Added Serbian translations

v2.2 (2012-07-11) (Dev time: 0.5 hour)

  • Added Hindi translations
  • Added checks to see if elements are present in the array before accessing them.

v2.1 (2012-04-07) Dev Time: 1 hour

  • Fixed CSS issues in IE
  • Added Lithuanian translations

v2.0 (2012-04-01) Dev Time: 10 hours

  • Fixed a major issue in how dates were handled.
  • Major UI revamp
  • Added debug information and support urls

v1.9 (2012-03-16)

  • Added support for deleting by permalink. Credit Martin Capodici
  • Fixed issues with translations
  • Added Russian translations

v1.8 (2012-01-31)

  • Added roles and capabilities for menu

v1.7 (2012-01-12)

  • Added Bulgarian translations

v1.6 (2011-11-28)

  • Added Italian translations

v1.5 (2011-11-13)

  • Added Spanish translations

v1.4 (2011-08-25)

  • Added Turkish translations

v1.3 (2011-05-11)

  • Added German translations

v1.2 (2011-02-06)

  • Added some optimization to handle huge number of posts in underpowered servers

v1.1 (2011-01-22)

  • Added support to delete posts by custom taxonomies
  • Added Dutch Translation
  • Added Brazilian Portuguese Translation

v1.0 (2010-06-19)

  • Proper handling of limits.

v0.8 (2010-03-17)

  • Added support for private posts.

v0.7 (2010-02-21)

  • Added an option to delete posts directly or send them to trash.
  • Added support for translation.

v0.6 (2009-07-22)

  • Added option to delete all scheduled posts.

v0.5 (2009-07-21)

  • Added option to delete all pending posts.

v0.4 (2009-07-05)

  • Added option to delete by date.

v0.3 (2009-04-05)

  • Prevented drafts from deleted when only posts are selected

v0.2 (2009-02-03)

  • Fixed issues with paging

v0.1 (2009-02-02)

  • First version

297 Comments so far

Trackback URI | Follow up comments through RSS Feed | Post a comment

  • Maximus says:

    Hi,
    Thanks for this plugin. But I get this error while using it. When I tried to delete the posts in a category it pops me with the question that “Select atleast one category” eventhough I have selected the categories.

    Thanks!

    • Sudar says:

      @Maximus,

      Thanks for trying out my Plugin.

      Let me know in which browser and in WordPress version you are getting this error, so that I will try to fix it.

  • Vavai says:

    Thanks, it’s suitable with my purpose. Awesome plugin.

  • scott says:

    You sir are a genius!!!!

    This is a great Plugin

    Thanks

  • Onreviews says:

    still delete published post from draft (published post is always recognize as draft)

  • Lynn says:

    This saved me a great deal of work, thank you. Is there a way of adapting it to bulk delete posts that are in Pending Review?

    • Sudar says:

      @Lynn,

      Nice to know that this Plugin was of help to you. Right now it is not possible to delete posts pending for review. However I will add this feature when I find some time.

    • Sudar says:

      Check out the latest version of the Plugin, it has support to delete posts which are pending for review.

  • Wayne says:

    Nice plugin, works very well. How about coming up with a bulk tag remover?

    Thanks.

    • Sudar says:

      @Wayne,

      Nice to know that you like the Plugin and thanks for suggesting bulk tag remover. I will implement it when I find some time. :)

  • This is a great plug-in, and it seems to work fine in a test WordPress 2.7.1 installation I tried it out on.

    Does anyone know of a recent plug-in that will delete posts in a specified category after a certain interval (say, over 90 or 180 days old) … that works in 2.7.1??

    Thanks for sharing this code!

    Robin

    • Sudar says:

      @Robin,

      I am not sure if there is a Plugin to do that. I will try to add that feature to this Plugin if I get some free time.

    • Sudar says:

      @Robin,

      I have updated the Plugin and have added the support for filter by date range. This feature is available from v0.4 and above. Try it out and let me know if you have any feedback.

  • Merci says:

    Hi Sudar! I tried your plug-in today and it worked almost perfectly. The only problem is, that it does not delete the category that has 1234 posts. It starts to proceed, but after 2 seconds the page turns blank and nothing happens. Do you have an idea why, is there a limit or what do you think I should do?

    • Sudar says:

      @Merci,

      I havn’t placed any limit on the number of posts that can be deleted in the Plugin code.

      My guess is that the PHP script is timing out. Try to increase the timeout limit in your php.ini file.

      Let me know whether it works after increasing the timeout.

    • Sudar says:

      Try out the latest version of the Plugin. Now it provides the option to delete posts in batch.

  • Merci says:

    I did not try what you suggested, because I started to delete the posts manually and when there were less than 1000, I tried to bulk delete again and than it worked. Thanks anyway, your plug-in really helped a lot :)

  • Rob Barham says:

    Thanks for this plugin, worked like a dream and saved me a lot of time.

  • Mark says:

    I’m trying you’re plugin on a WordPress 2.7.1 install and trying to delete posts by cartegory but I seem to have bit hit by a problem another of you’re commenters have said. I can’t delete posts in a category with over 1000 posts. I was able to delete posts in a category of 518 posts and 18 posts.

    But I have one category I want to clear out and it contains 6359 posts, as task I don’t want to do by hand. When I click delete, nothing happens. It just pulls up a blank page. It doesn’t look like a timeout because it doesn’t seem to do anything, unlike when you do delete successfully, where the page takes a few seconds to load.

    • Sudar says:

      @Mark,

      Thanks for reporting the issue. I have tested it with only around 1000 posts before. I will try to see how it behaves when the number of posts is huge and will let you know if I fix the issue.

  • Mark says:

    BTW You’re RSS feed linked to by the “Subscribe to the comments through RSS Feed” is broken. It seems to contain your blogs posts instead of comments on this post!

  • Mark says:

    I did some digging and it looks like WP_Query breaks down if you try to query a category with more than 1000 posts and ‘nopaging’ enabled. I couldn’t find any useful info in my error logs. It just freezes. I’ve increased the PHP timeout and memory access too, but no affect.

    So I did a little hack that seems to work, deleting the posts in pages. It does time out so you have to run it several times. But saves me a good hour or two of tedious manual clicking…


    case "bulk-delete-cats":
    // delete by cats
    $selected_cats = $_POST['smbd_cats'];

    /*$posts = $wp_query->query(array('category__in'=>$selected_cats,'post_status'=>'publish', 'post_type'=>'post', 'nopaging'=>'true'));
    foreach ($posts as $post) {
    wp_delete_post($post->ID);
    }*/

    // if you have more than 1000 entries in a category,
    // querying them with nopaging breaks WP

    $posts = $wp_query->query(array('category__in'=>$selected_cats,
    'post_status'=>'publish',
    'post_type'=>'post'));
    while($posts) {
    foreach ($posts as $post) {
    wp_delete_post($post->ID);
    }
    $posts = $wp_query->query(array('category__in'=>$selected_cats,
    'post_status'=>'publish',
    'post_type'=>'post'));
    }

    break;

    It’s a pity you have to run the post to delete through wp_delete_posts because this creates many queries for each post. If you could delete the posts in one query and then tidy up, I think it’d be a lot more efficient and I wouldn’t hit the timeout.

    • Sudar says:

      @Mark,

      The reason why I am running each post through wp_delete_posts is that, only this function deletes all references of the posts like attachements, comments etc. Let me see if I can reduce the amount of query so as that it doesn’t timeout.

    • Sudar says:

      @Mark,

      One reason why deleting more than 1000 posts fails is that PHP might run of memory. Try out the latest version of the Plugin. I have added some optimizations to over these issues.

  • Alex says:

    Hi,

    I’ve read some of you had a problem with categories with more than 1.000 posts in it. In these cases the script simply shows a white, empty page. Thats it… *grmpf*

    I think I got a workaround, at least for those who have control over their server.

    I tried to increase the PHP.INI max_execution_time as mentioned before, but that alone did not work.

    In my case with a category with approx. 5.800 posts it worked with the following settings:

    max_execution_time = 600 ; Maximum execution time of each script, in seconds
    max_input_time = 30; Maximum amount of time each script may spend parsing request data
    memory_limit = 256M ; Maximum amount of memory a script may consume (8MB)

    I think you need to increase both max_execution_time and memory_limit, even if these values are far too high for normal usage, dont forget to set to the initial values after the deletion is done!

    Greetz
    Alex

  • Sidney says:

    I’m testing this on a 2.8 installation and it seems to be working great.

    Like Robin, I also need the ability to delete posts that are older than say, 15 or 30 days. This would be a great feature.

    • Sudar says:

      @Sidney,

      I have added this feature to the Pluing. It is available from v0.4 and above. Try it out and let me know if you have any feedback.

  • Alb3rt1 says:

    Hi I tested last version 0.4 on wp2.7 and seems doesn’t works….

    • Sudar says:

      @Alb3rt1,

      0.4 is meant for WordPress 2.8+ Can you try it in WordPress 2.8+

      Also let me know what was the issue that you were facing.

  • John says:

    Is it possible to add scheduled posts to a future update.

    Having added a number of posts to my schedules list I realise they are not relevant and would like to remove them along with similar posts that have already posted.

    Thanks

    • Sudar says:

      @John,

      I am working on adding an option to select future posts. It’s in the final stages and I will release the future by tomorrow. So stay tuned :)

    • Sudar says:

      @John,

      v0.6 of the Plugin supports deleting future posts in bulk. Check it out and let em know how it works for you.

  • privendo says:

    can you add also a feature to delete duplicate posts and make it working via cron?

  • John says:

    Just downloaded the plugin and wiped uot a months worth of scheduled post!

    Excellent work, thank you.

  • @Sudar : Thanks for including the new features in 0.6… Unfortunately, I get the same blank page issue when running it against a category that has a huge amount of posts (> 20,000) … I wonder if I should adjust the php.ini settings (temporarily) to higher values temporarily to let your plugin run.

    Thanks for sharing your work. :)

    Robin

    • Sudar says:

      @Robin,

      I am thinking of doing the delete in batches so as to prevent the script from timing out. Will implement it when I get some free time.

  • John says:

    Would be interested to know if there is a max limit for deletions as this was an issue my partner raised about bulk deletions. Not just the php.ini settings but also about the string length generater to call the deletions. Does the plug in run in batches?

  • John says:

    Just run the plug in on separate blog with great success.

    I am sure it would require completely different programming but could you select posts based on say, single words or two word phrases? This would help select posts that are mixed in with others and not easily identifiable by category.

    I know this is very different reqiurement but it would be useful for removing post featuring say a Trade Name or brand where a dispute happens.

    Thanks anyway

  • John says:

    What is the earliest version of wordpress that this plug in will work with?

    I just tried it on an older blog and it failed

    Thanks

    • Sudar says:

      @John,

      I don’t normally test my Plugins in older version of WordPress, but technically it should work in 2.5 and above.

      In which version you are getting the error and if possible specify the error. I will see if I can make it backward compatible.

  • John says:

    That’s my problem, they have been stripped out so I can’t see which version they are.

    Any tell tales signs or coding notes that might identify them?

  • Mike says:

    Any update on the automation process you mentioned in a post back in May? In other words, presetting the plugin to run a predetermined deletion process at a predetermined timeframe.

    Thanks

    • Sudar says:

      @Mike,

      It is still in my todo list ;)

      I faced some problem in scheduling code and left it there. I will dust off the code and will update it when I get some free time.

    • Sudar says:

      @Mike, I have finally added the ability to delete posts at a pre-determined timeframe. Checkout v3.2 of the Plugin.

  • Sarah Jo says:

    Just installed this plugin, and I’m hoping it will work for me, but it’s not working right now. When I go to the Bulk Delete page, there’s nothing below the Warning tag. No categories to choose, no buttons to click. I’ve installed, deleted, and reinstalled the plugin multiple times, and no luck. Thoughts?

  • Peter says:

    Thanks for the great plugin.

    1) It would be great if this plugin can be scheduled to auto delete posts (via cron or something).

    2) Another useful feature would be to remove posts containing/not containing a particular keyword.

    Eg. Delete all posts whose title/post contains “flower”

    or Delete all posts whose title/post does not contain “flower”.

    • Sudar says:

      @Peter,

      Thanks for your suggestions. Both of them are there in my todo list and I will try to implement them when I get some free time.

  • Sarah says:

    I’m using 2.8.3, and I realize that this plugin only works up to 2.8.2. Any plans to update it?

    • Sudar says:

      @Sarah,

      There are no compatibility issues between 2.8.2 and 2.8.3 and that’s why I didn’t issue an update. You can very well use the Plugin in 2.8.3 without any issues.

  • Sarah says:

    It is still not working. I even updated/repaired my database, reinstalled WP, and reinstalled the plugin. Any suggestions?

    • Sudar says:

      @Sarah,

      The blank page was appearing when there are huge number of posts in an underpowered server. I have added some optimizations to prevent that from happening.

      Try out the latest version of the Plugin, which has fixes for it.

  • John says:

    I have updated several blogs to 2.8.3, from 2.8.2 and even 2.5.1 using both Installatron and Automatic Update plugin before installing and activating Bulk Delete, not had any problems so far. Not sure what that says to Sarah but it isn’t a problem for my instals

  • Jeremy says:

    I have same problem as Sarah. WP 2.8.3 PHP 5.2.6-5

    You can see screenshot here: http://www.ihuntsvillehomes.com/bulk

    • Sudar says:

      @Jeremy and @Sarah,

      Thanks for posting the screenshot. There certainly seems to be something wrong.

      Will it be possible for you to check the error log, to find out if there are any errors that have been logged by PHP or Apache?

      I am not able to simulate it at my end, but if I could simulate it, then I can surely fix it.

  • Sarah says:

    I don’t know what I’m doing with PHP or Apache to check for errors….Instructions? (You can email if you want.)

  • Tom says:

    Your plugin did not work for me. I am running 2.8.4 and have a news site that has about 10,000 plus posts in multiple categories. I try to delete posts in a sub category and it does not work. Goes to a blank page, I notice that the mysql queries have stopped on the server, and then nothing. I go back to the posts page to find that nothing has changed.

    Tom

  • Separatista says:

    Hi, is it possible to delete tags with this plugin? Also when deleting posts where are relations to custom taxonomies, these relations are not deleted. Thank you for your help…

    • Sudar says:

      @Separatista,

      Right now it is possible to delete only posts and not tags. When a post is deleted, it will delete only the comments and attachments associated with the post. If it was associated with any tags or categories, it will remove the association with those tags or categories but will not delete them.

      Hope this clears. Let me know if you still have any questions.

      • Separatista says:

        Yes, I understand, but when I use also custom taxonomies (some kinds of tags from WP 2.8, http://justintadlock.com/archives/2009/05/06/custom-taxonomies-in-wordpress-28) in posts, then association between particular post and custom taxonomy is not deleted. But it would be very helpfull if this association would be also deleted with deletion of posts…

        • Sudar says:

          @Separatista,

          Good point. I never thought of custom taxonomies, since I haven’t used them much. I will try to add this feature to the Plugin. Thanks for pointing it out.

          • Separatista says:

            Great, it would be very helpfull. And one more question, custom fields related to particular post are also deleted with this posts, right?

            • Sudar says:

              @Separatista,

              I am calling the wp_delete_post() function, which is the default one used by WordPress. So I guess it should also delete the custom fields. But I haven’t tested it, so I am not 100% sure. Thanks for bringing this to my attention. I will have a look at it and if it is not deleting it, then I will add the code to delete it also.

  • Jeff says:

    Thanks for the plugin.

    Now if you could only add in the options to Delete Categories and Delete Tags as well, that would be marvellous!

  • alexa says:

    hello sudarmuthu, why I get this error after activate it and go to the setting.

    WARNING: Posts deleted once cannot be retrieved back. Use with caution.

    Fatal error: Call to undefined function screen_icon() in /home/me/public_html/domain.com/wp-content/plugins/bulk-delete.php on line 143

    =================

    fixed, I go to line 143 and delete this –>

    and it work …

    thank you this is great plugin, it save me alot of times, really appreciate it :)

    alexa.

  • Rob says:

    This is an awesome plugin — saves me countless time.

  • Eric Wiegand says:

    Deleting the revisions will not delete the actual post, will it?

  • G.M says:

    Very useful

  • tdgphenix says:

    Is this compatible with 2.8.4? I installed the plugin but nothing shows up when I try to use it.

  • KJH says:

    Hi Sudar – any plans to update to work with WP 2.8.5? I just tried it and the Settings page only loads partially.
    Thanks!

    _KJH

  • Mike says:

    Sudar,

    Does the delete process also delete taxonomy references in the database to the post being deleted? I use WP custom taxos for navigation on the site so records can be filtered by county, booking date, etc (other taxos) so when the post delete with the current plugin I use (custom built) the tags do not seem to delete so the count in the menu stays at say 350 when there are only 300 post in the DB. It would be great if your plugin also handled the deletion of tags referenced to a post.

    Please let me know if this is supported.

    Thanks

    Mike

  • Randy says:

    I’m using WordPress 2.8.5 and successfully used your plugin once, then it stopped working and just immediately goes to a blank page no matter what options I try. No apparent errors in PHP log. Any ideas? Thanks…

  • leslie says:

    I have 9,000 posts I would like to delete, I was able to delete categories under 600 just fine. I read thru all the replies here about increasing something that is timing out? how do I do that? I am not well verse in html. I am using the lates wordpress upgrade. Thank you

  • Suneel says:

    Thanks it helped me a lot.

    A nice plugin.

    I would ask you to direct the users to WordPress.org download page rather than being able to download the plugin from here directly.

    You can ask the users to rate there itself.

    • Sudar says:

      @Suneal,

      I provide link to both the zip file (hosted in wordpress.org) and also to the Plugin page. The reason I post both the links is that, if the user wants to directly download the zip file, he can save one more pageload and click :)

  • Fer says:

    I´ve installed the plugin vo.6 in WordPress 2.8.6, activated it but it seems not to be working at all.

    I only get a blank page.

    any idea?

  • Fer says:

    Me again, problem was that my database was oversized. Solved it starting from zero (delete DB, reinstalling…) it´s working fine now

    Thanks for the plugin.

  • Ira says:

    I’m running WP 2.9 and Bulk Delete is not working. I have something over 3000 drafts that i want to delete and the Bulk Delete screen shows only 10 drafts. When I click drafts and delete the system hangs up looking for the website. Any idea what’s wrong. I know 2.9 now has a trash function and things are not permanently deleted. Thanks

    Ira

  • Henk says:

    Hi,

    also timeouts for me. Deleting 6K posts always timouts. Did increase executin time in htaccess. Any updates on plugin expected?

    thanks

    Henk

  • jq says:

    how do i install this plugin?

  • John says:

    Hi Sudar

    I just installed the plugin on 2.9.1, had to do it manually as zipped upload failed, message ” couldn’t move uploaded file to w-content/2010/01 or similar ( sorry should have copied it) but that is probably just an architecture problem.

    Anyway, one activated I get a almost blank screen on the Setting page.

    Just this, no input boxes.

    Bulk Delete
    Select the posts which you want to delete

    Looks like 2.9.1 will need a tweak!

    Thanks for the great plug in

  • John says:

    Just tried to re-install and message

    The uploaded file could not be moved to /home/nitmixc/public_html/wordpress/wp-content/uploads/2010/01.

    repeated, same as last time.

    I will leave it until you see this comment

    Thanks

    • Sudar says:

      @John,

      This is strange. Are you able to get other Plugins to work?

      Also if possible provide me these details.

      1) Which version of PHP you are running.
      2) Approximate number of categories and posts.
      3) Was it working before you upgraded to WordPress 2.9.1?
      4) Also which version of Bulk Delete Plugin you are using (I assume you are using the latest one)

  • John says:

    Tried uploading another plug in via the zipped upload feature but got the same result so it looks like an error due to upgrading to 2.9.1 from 2.7.1

    I will try removing the plugin and ftp ing in

  • John says:

    ftp it in and activated it, same result, empty setting page.

    This looks like a bug in the wp upgrade.

    • Mai says:

      I have the same problem. I downloaded the plugin and FTP’d it to my account. When I tried to delete a certain “category” which has about 1, 200 ++ posts, it just loads to a blank page.

  • John says:

    php 5.2.1

    thanks

  • Brett says:

    Hi Sudar,

    This plugin is just what I’m looking for. I’m having same issues as above

    I’m using PHP Version 5.2.11, WP-2.8.5 and the theme Thesis-1.6.

    I have aprox 250 categories 2,000 posts that I would like to delete on a regular basis.

    I get the blank manage screen also. Anything under the “Select the post which you want to delete” is blank. I switched Themes back to WP default to see if the theme had anything to do with it but no dice.

    Any advice would be appreciated.

    Brett

  • Miki says:

    Hi Sudar,

    I’m testing this plugin on my website. There is a bug. When I try to delete a category with about 2000 articles with “Only restrict to posts which are older than 120 days”, the plugin starts the process and finishes in 2 seconds and returns on the main screen of plugin: no posts were deleted. If I uncheck the “Only restrict to posts which are…” the delete starts for about 3 minutes and all posts in this category are deleted. Why, with days limit, does the plugin start and finish (with message “All the selected posts have been sucessfully deleted.”) without deleting posts?

    thank you very much :)

  • Miki says:

    ops, my wp version is 2.7 php version 5.2.12 mysql version 5.0.82sp1-log

    Thanks :D

  • Charlie says:

    Thanks for the plugin.

    I have tried it on two sites. On the smaller one it worked nicely.

    On the larger one (>12k posts), it doesn’t work at all, for the reasons highlighted in some of the comments above.

    It is always likely to be more useful for sites with larger numbers of posts. Is there anything that you can do?

    Regards

    Charlie

  • David Wren says:

    Hi,

    Thanks for the great plugin – saved me lots of time (thought I was going to have to write something from scratch to do the job!).

    Might I be so bold as to make a suggestion though…

    Where you call the built-in wordpress ‘delete_post’ function:

    wp_delete_post($post->ID);

    Would it be a good idea to pass the second parameter ‘force_delete’ (as true) or at least provide a switch in the plug-in to toggle this value?

    The reason I ask, I had 5000+ posts to delete, and while it took some time, was much easier than mucking around with the database directly. But when I was finished with the plug-in I noticed that wordpress had just moved the posts to the trash – meaning they needed to be deleted again.

    Reading the source of the ‘delete_post’ function I think ‘force_delete’ stops the post going to the trash (although I could be wrong).

    Also, as the plug-in was failing to delete all the posts within the time allocated by PHP, I as others have suggested used the ‘max_execution_time’, ‘max_input_time’ & ‘memory_limit’ settings to extend the run time.

    Might it be a good idea to add some fields to the plug in page so that users can insert these values without touching the plug-in code itself? For example, I edited your plug-in to look like:

    if (!function_exists(‘smbd_request_handler’)) {
    function smbd_request_handler() {
    global $wpdb;

    if (isset($_POST['smbd_action'])) {

    $wp_query = new WP_Query;
    check_admin_referer( ‘bulk-delete-posts’);

    ini_set(‘max_execution_time’, 800);
    ini_set(‘max_input_time’, 30);
    ini_set(‘memory_limit’, ’256M’);

    switch($_POST['smbd_action']) {

    Thanks again,

    Regards

    David

  • Charlie says:

    I think that David’s suggestions are excellent. Could you upgrade your plugin to accommodate them?

    I also discovered that with the latest WP version, all my hard work in deleting posts ended up in trash as more hard work.

    There is an entry you can make to WP_CONFIG that forces deletion rather than trashing as an alternative solution.

    define(‘EMPTY_TRASH_DAYS’, 0);

    Best wishes

    Charlie

  • Naeem says:

    not working for me

  • NT says:

    I unfortunately discovered just now that my feedpress plugin was duplicating content to my site and I now have 59K duplicate posts! I have since deleted that stupid thing.

    Your plugin looks like a lifeline to fix that issue, but here is the problem. I selected a “by category” to delete all the duplicate posts, and after hitting bulk delete, the server gives me a “500 internal server error” message.

    I am on WordPress 2.9.2

  • Laurent says:

    Hello.

    1st, thanks a lot for this great plugin. This is really missing in WordPress.

    Just to know, Sudar, did you fix the issue with the serveral 1000 posts deleting timeouts ?
    On a shared hosting account there is no way to change the SQL timeout parameters.

    Thanks for the good job.

    • Charlie says:

      First of all, Sudar, thanks for the update. It has answered most of my queries. Excellent stuff!

      In answer to Laurent’s question, I haven’t specifically tried, but I did notice an option to delete posts in chunks, which will certainly be a big help with this problem.

  • Spel says:

    I will ask for help

    I need something which will delete lots of post – but all are private – not published

    I lead one web site where I publish some topics, but for registered members I offer to read rss aggregated post which has been aggregated from all some other web sites – Those topics are from same or very similar areas like web site I lead.

    I remove all those private topics older than 2 months manually because it can be very huge amount of data.

    Can this be suitable for that purpose – because I don’t see private posts – can this be tweaked for that also?

    Thanks in advance

    Spel

    • Sudar says:

      Spel,

      Right now the Plugin doesn’t support deleting private posts. It is there in my (long) TODO list. Will implement it when I get some free time. :)

      Meanwhile, I can bump up the priority if you are ready to sponsor the Plugin ;)

    • Sudar says:

      Spel,

      I have just released version 0.8 of the Plugin with support for deleting private posts. Try it out and let me know if you have any feedback.

  • Marc says:

    Trying out this plugin….. WordPress 2.9.2 plugin version 0.7….. trying to delete posts older than 200 days old in a specified cat. the plugin admin screen looks like it is working after clicking the button bulk delete. the screen comes back and says All the selected posts have been successfully deleted, however nothing is in the trash. (i selected trash, not delete)…. I even tried delete not trash, same results. Any help would be appreciated.

    thanks.

  • Tom says:

    Thanks for the plugin, working fine on my 2.9 wp.

  • Jason says:

    I’m trying to use your bulk delete plugin and when I select what I want to delete the page refreshes to a blank page and nothing gets deleted. Not sure whats going on but there is definitely something wrong.

    Any help is greatly appreciated

    Thanks

    • Sudar says:

      Let me know which version of PHP and WordPress you are using. Also check your PHP error log and let me know if you find something there.

  • Jason says:

    PHP version is 5.2.4
    and my wordpress is the latest 2.9.2
    I didn’t find anything in my error log

    Oh I should amend my above statement that once I hit the bulk delete button (categories) then it refreshes to a blank page with my browser (FF) reporting done.

    Thanks

    • Sudar says:

      This really seems strange. Just checked in PHP 5 and it seems to work.

      Try to delete really small number of posts. Something like 5 or 10 and let me know if you are still facing the same issue.

  • perotheus says:

    This plug in saved me so much time.

    I imported my blog from blogger to wordpress… for some reason, many posts were missing from the import. So, I made all of the more recent (done on WP) posts DRAFTS, and deleted everything but the drafts with the plug in.

    I still have to re-import the (blogger) posts, then have a few days of re-categorizing and fixing bad links (blogger archive links are not formatted so WP can see them?)

    Harumph.

    Anyway — thanks for making the deletion process so much easier than 10 posts at a time.

    • Sudar says:

      Nice to know that my Plugin was of help to you :)

      Comments like these really motivate me to spend more time on my free WordPress Plugins.

  • Gus says:

    Hi there,

    I have installed the latest version of this plugin on 2.9.2 version of wordpress. I am trying to delete around 15000 posts. No posts are being deleted. I did check off to delete in chunks but I get the same empty screen
    after I click “bulk delete”

    Any suggestions?

    Thanks

  • Ivan says:

    Really great plugin! It helped me in development. Thanks a lot.

  • Cees... says:

    Hello Sudar,
    Just installed Bulk Delete on the Oranjetwittert.nl but encountered a problem while starting the Bulk Delete user interface. Only the title and Yellow warning is shown. Could this be caused by the number of posts 45.000 in the Db? and if so is there a way to overcome this issue.
    thanks,
    Cees…

    • Sudar says:

      Hello Cees,

      The number of posts in the db should not have any effect on the Plugin. I guess there is some PHP error which is causing this.

      Can you check the PHP error log to see if there are any PHP errors? Also let me know which version of PHP you are using.

  • Will there ever be a function that allows the script to cron certain features? Or even jut scriptlets that could be triggered via regular cron jobs (i.e. delete_drafts.php, delete_old_posts.php)? I’m working on a site that will undoubtedly have hundreds, if not thousands of posts that are rejected and I’d like for those to be deleted after a certain # of days.

    • Sudar says:

      Jerry,

      Right now I don’t have any plan to add the ability to delete posts by cron.

      I might take it up, if you are willing to sponsor the development :)

  • Gary says:

    Shouldn’t:
    case "bulk-delete-special":
    $options = array();

    $limit_to = absint($_POST['smbd_cats_limits_to']);

    be


    case "bulk-delete-special":
    $options = array();

    $limit_to = absint($_POST['smbd_special_limits_to']);

    ?

  • Kim Gillett says:

    Very nice plugin. 800 posts deleted in about 4 minutes. You save me a ton of time. Thanks! Kim

  • Mitch says:

    Hello,

    I’m having the same issue with a blank page when I click on the Bulk Delete menu option. I get:

    Bulk Delete
    Select the posts which you want to delete

    Nothing below. Using WP 2.9.2 and PHP 5.1.6.

    Please help ASAP. Thanks,

    Mitch

  • asd says:

    i tried to use this plugin but nothings shows up up. just an empty page shoed up when i am trying to use it.

  • Chris says:

    Just a warning!

    Got my Host (Just Host) account suspended while using this plugin.

    Heres the link to my suspended page: http://www.cheapsocceruniforms.net/cgi-sys/suspendedpage.cgi?page=bulk-delete.php (you will notice the bulk-delete plugin at the end of the url.

    The host told me that while using this plugin, used up 33% of there CPU resources.

    Anyone else got there host suspended while using this plugin?

  • John says:

    Hello

    Just installed your wonderful plug in on yet another blog but got a strange problem on this one. Install is WP 2.8.3 with BD 1.0

    This blog has 18,00 plus post but none show up in the Mange BD screen. Not a blank screen but no posts listed in any of the ( post count) in any subcategory of posts, nothing in the Categories either.

    Any suggestions?

    Thanks

  • Sam says:

    Hi Sudar,

    I’ve installed BulkDelete v1.0 on my WP v3.0 Blog, but it’s not working!
    Everything seems like it is but when I look to my total posts count no posts have been deleted at all.. :/
    Hopefully you’ll be able to fix this.

  • I can’t thank you enough for this plugin!

    I had over 2,800 posts on my site that had to be deleted, and I was dreading spending an afternoon clicking through page by page to get rid of them.

    You just saved me god knows how many hours of work.

  • karen says:

    I need your help please.

    I have tried uploading your plugin many times. I have many posts to delete. I have tried everything for 2 hours. I don’t have much time…I just have a blank screen on the plugin manage page. I have the header, and the caution warning but that’s it.

    I am using wordpress 2.9.2 and Safari browser, but I also tried uploading and activating in IE also.

    I downloaded v. 1.0 and then I downloaded and activated 1.1.0 but still no luck

    I look forward to your help…thank you!

  • malcolm says:

    Nice one mate – many thanks. I had 2,500 unwanted posts (auto Twitter… :-( ) – fortunately all posted to the same category.

    Zapped ‘em good. Didn’t want to be doing them one at a time…

    Many thanks

    Malc

  • Hi, thanks the work…..
    This plugin use to work previously but it seem like having some problem after my post increase.

    1. Error msg show, it over ram limit.
    then i increase the php ram limit, but now it stop at no where (blank page) and nothing delete.

    thanks
    btw my site with 190k post :), previously working on 180k post. :)

    thanks again

    • Sudar says:

      Try increasing the amount of RAM a bit more. Also check what is the maximum amount of RAM that can be allocated to a particular process in your server.

  • Thanks Sudar …..
    yah i increase to 1024 and it working now :)

  • Michael says:

    If I delete 100 posts, each of which has an image in it, and a corresponding thumbnail created by the media library automatically, does the plugin also delete the images associated with those deleted posts?

    That would be good for cleaning out the library, too.

    Thanks!

  • AP says:

    Hi… It is not working.
    For example, the count doesn’t show next to the delete options.
    I select delete all, and also tried a limit to 5 test and nothing gets moved or deleted from my pending posts.

    I have over 4000 pending posts and need to remove a good size bulk.

    Please help.

    Thank you much :)

    Latest version of WP
    PHP5

    • Sudar says:

      You might have to increase the memory limit in your php.ini file. Also checkout if you are getting any error in your PHP error log.

    • Sudar says:

      Try out the latest verion (1.2+) of the Plugin. I have fixed some issues and have added optimizations. Try it and let me know if you still face any issues.

  • Ben says:

    Thanks for this, I’ve been looking all over for a way of doing this. Lifesaver :)

  • Jon says:

    Your plugin is not working I selected my category as i only have 1.

    I made sure my PHP.ini file was increased

    I DONT GET ANY TIMEOUTS ( NO WHITE SCREENS )

    It says its deleted the posts in that category

    but I go and look and they are still there

    Same applies for pending posts

    Your plugin is not working!

    • Sudar says:

      Give me the following information, so that I can try to debug the issue

      1) Your PHP version
      2) Bulk Delete Plugin version
      3) WordPress version

      Also tell me how many posts you are trying to delete.

  • Jon says:

    HI there Your plugin is not working I selected my category as i only have 1.

    I made sure my PHP.ini file was increased

    I DONT GET ANY TIMEOUTS ( NO WHITE SCREENS )

    It says its deleted the posts in that category

    but I go and look and they are still there

    Same applies for pending posts

    Your plugin is not working!

  • Pingu says:

    Dear,

    your plugin is great. Thanks. I wanted to propose one thing. I don’t need this plugin if I have a few post. Right? I need this plugin if I need to delete e.g. 60.000 posts (which I really have).

    You can imagine what will happen to wp database of you try to delete 60.000 posts. It would be great if you could integrate some kind of scheduled progress e.g. so plugin will delete 30 per 30 posts until everything is done.

    Be good

    • Sudar says:

      Right now I don’t have plans to write a scheduler. But if I get some free time or if someone is ready to sponsor the development, I might code it. ;)

  • kimi says:

    Hi,

    Just installed and nothing shows up, when I go to bulk delete page just the title. I used it with succcess with last version of wp.

    All I see is Select the posts which you want to delete nothing else.

    Kimi

  • Samuel says:

    Hi Sudar!

    I find this plugin very useful, but I miss two things:

    - Option to bulk delete all posts in trash.

    - Options to bulk delete posts based on user (i.e. delete all posts from an user, delete all posts from an user in a certain category, etc…).

    Are you willing to add these features? :)

  • Possible to add cron job features ? so i can use cron job to delete certain amount of post every night without slowing down the server :)

    Thanks really great plugin ::)

  • VBJC says:

    Hi! Great plugins!

    Is there any easy way to get the bulk delete plugin to automatically delete posts in a certain category ever night at 11pm, for example?

    I’ve been looking for a plugin or hack to to do this, but so far haven’t found anything.

    Thanks for your help!

  • Dave says:

    Hi Sudar,

    I am facing the same problem as kimi.

    Just installed and nothing shows up, when I go to bulk delete page just the title. Doesn’t seem to work with 3.0.4

    All I see is Select the posts which you want to delete nothing else.

  • Dave says:

    I am not sure if my previous comment got posted, but I am facing the same issue as kimi is facing. I dont see anything in the error logs. No other plugins are activated and i am using this plugin on 3.0.4 with twentyten.

    Just installed and nothing shows up, when I go to bulk delete page I just see the title.

    All I see is Select the posts which you want to delete nothing else.

    Dave

    • Sudar says:

      Dave,

      I am not sure what is going wrong. But since many people are facing the same issue, I think I might have to get to the root of the issue to fix it.

      Will it be possible for you to give me access to your server to debug the issue?

  • Marc says:

    Hi

    Great plugin. Exactly what I need – except I need to schedule this as a cron tab to run every day.

    The script delete entries from RSS feeds, hence they grow very quickly.

    Regards

    Marc

  • Marc says:

    Hi

    Great plugin. Exactly what I need – except I need to schedule this as a cron tab to run every day.

    The script deletes entries from RSS feeds which grow very quickly.

    How can I schedule my delete query? Even if the url was displayed next to the “bulk delete” button, I could then schedule this via Curl.

    Regards

    Marc

    • Sudar says:

      Right now the Plugin doesn’t support cron. It is there in my Todo list. Will add it when I get some free time.

      Meanwhile, if you are ready to sponsor the feature, then I might try to do it a little quicker. :)

  • evan says:

    Feature request: Expandable/collapsible taxonomies

    I need to delete all the posts of a particular term of a custom taxonomy. Also on a less important note my list of tags is frightfully long. It would be great if I could chose not to expand the tags and have the option to expand only the taxonomies I choose.

  • Jack Godot says:

    Hi
    I would like to add a vote for deleting by a particular taxonomy.
    Perhaps to make this easier, you could first implement this for hierarchical taxonomies that behave like categories.
    Thanks, Jack

  • Jack Godot says:

    Hi
    I would like to add my vote for adding the ability to delete by individual taxonomy.
    Perhaps, to make it easier, you could add support for hierarchical taxonomies which emulate the behavior of categories.
    Cheers, Jack

  • Sonny says:

    It seem like the plugin won’t work for wpms :)
    It used to work fine till i upgrade my site to wpms and multi db ….
    any solution ?

  • superfriend says:

    How hard would it be to add Custom Post Types to this plugin? So that I can choose “Delete all CustomPostTypeX.” It would be a bonus if we could select both a post type and a taxonomy filter, but custom post types alone would be great.

  • Sonny says:

    i think main reason why bulk delete not working on my wpms, should be i using multi DB setup … basically i run 16 data base on wpms :)

  • Alessandro says:

    Hiii,
    The plugin can also be used to delete all posts that do not have associated tags?

    thanks a lot ;)

  • Sudar, many thanks for creating & offering this wonderful plugin to the world of WordPress users.

    I’ve just downloaded & installed it on our first ECommerce WP affiliate store tonight. It’s been so handy being able to import the merchant’s datafeed in to test our shop setup, then use your Bulk Delete plugin to remove all 374 products (as posts) in an instant, as we finetune everything.

    Shall Tweet & Facebook Share now. May you have a great year ahead!

  • tonex says:

    This was of great help. However, it couldn’t delete when deleting by categories if the count is huge, like, 40,000 posts in a category. Even if I use the option to delete first n posts.

  • ctrmeter says:

    i would appreciate if you can add the functionality to delete published posts with no content or specific words in the content.

    • Sudar says:

      @ctrmeter,

      That’s there in my TODO list, but unfortunately that list is pretty long now. Will fix it when I get some free time.

  • Chris says:

    Just tried to use this and get a 500 error saying to try again later?

  • Brett says:

    I’m getting this error when trying to delete posts by tags. It was working fine before but not anymore. Any Suggestions?

    The website encountered an error while retrieving http://www.lagunaagent.com/wp-admin/options-general.php?page=bulk-delete.php. It may be down for maintenance or configured incorrectly.
    Here are some suggestions:
    Reload this webpage later.
    HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

  • Nils Oman says:

    I have 4,000+ comments for my various posts. They are spam.
    I hoped to use your plugin to delete them. I don’t think it can.
    In essence I want to delete all records in wp_comments where comment_approved = 0.
    Do I have to do that manually using SQL?

    Regards
    Nils

  • N says:

    Hi there. I have PHP5 and, since I upgraded to WP3.3.1, I cannot delete any posts. I’m using Bulk Delete 1.7, but now get an internal sever error 500, even when I restrict the number of deletions to say only 50.

    Any idea how I can get this working again?

    Many thanks!

  • Corey Ellis says:

    I used the plug-in. I’m trying to delete all pages. Got a screen that says it was successful but all the pages are still there

    • Sudar says:

      @Corey,

      Recently I found a issue with the Plugin. It is fixed in v2.0 of the Plugin. Try the latest version and let me know if it works now.

  • nicwindley says:

    This plugin doesn’t appear to be working anymore. Had to run an SQL query instead.

    • Sudar says:

      What is the issue you are facing? Are there any error message in the error log? Is your server running out of memory?

      If you could include some more debugging information, then I can find out the reason why the Plugin failed.

      • nicwindley says:

        I had time to play around with a smaller set of posts this time (I was processing about 500 before) and it worked just fine so must be a memory issue. I’ll play around with the php.ini settings until I get what I need. Thanks for responding Sudar.

  • Very useful! Ability to delete revisions is my favorite feature :)

  • Anonymous says:

    Hello Sudar,
    i really apprcateur effort on creating this plugin. i was lookinf for long a plugin like this which could delete our posts in bulk specially when our blog is on auto. i downloaded it just a day ago an start using it. i seem there is a bug in it. it dont delete once we try to delete it on categoy basis and time related i.e i wanted to delete all the pstsfrom certain categories which where 7 days old.. i tried it so many times.. but it dont.. m’i mising something.. pls enlighten me if i’m doing something wrong

    Regards

  • zee says:

    Hello Sudar,
    i really appriciate ur effort on creating this plugin. i was lookinf for long a plugin like this which could delete our posts in bulk specially when our blog is on auto. i downloaded it just a day ago an start using it. i seem there is a bug in it. it dont delete once we try to delete it on categoy basis and time related i.e i wanted to delete all the pstsfrom certain categories which where 7 days old.. i tried it so many times.. but it dont.. m’i mising something.. pls enlighten me if i’m doing something wrong

    Regards

    • Sudar says:

      Let me have a detailed look at the Plugin over the weekend to see if there is any bug in the code.

    • Sudar says:

      @Zee,

      There was bug in the code that handled dates. I have fixed the bug in v2.0 of the Plugin. Try out the new Plugin and things should work fine.

      Let me know if you still face any issues.

  • Brett says:

    Hi Sudar, I know Iv’e asked this question before and you have told me its a memory issue, but something is not adding up.

    I like to delete by tag’s. I usually permanently delete and select the option delete post that are older than 2 days. Once upon a time this worked well but for some reason it dose not work anymore. After setting it up and clicking delete I get the message “All the selected posts have been sucessfully deleted” but nothing was deleted. I know this is not a memory issue because when I select “All Tags” without selecting any options, its processes for a while and deletes them all without a timeout. Any ideas what may be wrong?

    • Sudar says:

      Brett,

      Looks strange. Let me have a detailed look at the source code this weekend to see if there is a bug in the code.

      • Sudar says:

        Just confirmed the bug. Fix is on the way. Thanks for reporting.

      • Sudar says:

        @Brett,

        Fixed it in v2.0. Kindly update to the latest version and let me know if you are still facing this issue.

        • Brett says:

          Hi Sudar,
          Just updated to Version 2.0 via WP Auto update. I tried it and same problem.

          1) Checked delete by tags, 2) Only delete post older than 2 days, Delete-!

          I get the success message but nothing has moved.

          • Sudar says:

            @Brett,

            Hmm that’s strange. What are the published dates of these posts that you are trying to delete?

            • Brett says:

              I have multiple RSS feeds auto publishing single posts. New posts are published daily but when the product is no longer available the feed for that post is removed. I have on average 1,500 posts at any time. I simply use your plugin to refresh the posts so the unavailable products will be removed. I can delete them all and the available products will be re-posted but that uses unnecessary memory.

  • Anonymous says:

    Thank You Sudar. You if I can get that working again it will be awesome. Question, in the future do you plan to have an automatic option that we can set up to delete posts on a schedule? For example delete the selected tags automatically every 2 or 3 days?

  • Samolix says:

    I installed and activated the Bulk Delete plugin. I selected the option “Delete these specific pages ” typed in 707 as the page id selected Delete permanently, then clicked Bulk delete. the page remains???

    Please help?
    Thank you.
    Sambolix

  • Manuel says:

    Hi Sudar, I’ve used your Bulk Delete plugin in the past, but today on a new install, it doesn’t seem to be working at all. After the install, when I click on “manage” there’s no option to delete any post, all I see is a warning saying (in spanish): “Warning, impossible to recover deleted posts”. You can see a screen capture here:
    http://i4.photobucket.com/albums/y142/Suarezmanlanz/varios/Pantallazo-3.png

    It’s quite strange that the error message is in spanish. Do you think the problem might be on having a spanish wordpress instalation?

    • Manuel says:

      Forget about it. All the delete options were (quite) further down the page.

      Thanks a lot!

    • Sudar says:

      This is actually strange. There seems to be some CSS issue. Can you give me the following details for debugging?

      • Your WordPress version
      • Your browser version
      • Your operating system

      Thanks

    • Sudar says:

      I fixed the alignment issue in v2.1 of the Plugin. Try it out and let me know if you are still seeing alignment issue in your screen.

  • Jimmy nocode says:

    Hello,
    I have been looking for a plugin to remove old posts for some time, yours is the closest one I can find that does what i need. Thank you for your time and efforts. however, I’d like to request a feature. I hope you will consider it.

    I would like to be able to delete posts based on the number of page views it has or hasn’t received, further more it would be totally awesome if it could be set to automatically delete these posts every 30, 60, or 90 days.

    Thanks for reading I look forward to your response.

    Jimmy Nocode

    • Sudar says:

      Deleting based on page views is a good feature to have, but unfortunately I don’t have time to implement it. Will do it when I get some free time.

      If you are willing to sponsor the development, then I can probably do it a little quicker.

  • Jimmy nocode says:

    what’d you have in mind? my budget isn’t really bubbling, with my site’s barely making enough to cover hosting fees. but I’d be willing to send something your way. soon as my next adsense check clears I’ll cut you in.

  • Jimmy nocode says:

    tell you what, I’ll send two $50 donations, one each time my ad sense check clears. thanks for your time.

  • Ray Vellest says:

    It seems the plugin does not work with custom post types, is there any way to work around that? Perhaps an update soon?

    • Sudar says:

      Ray,

      Right now the Plugin doesn’t support custom post types.

      It is there in my (rather long) TODO list. Will implement it when I get some free time or someone sponsors my development time.

    • Sudar says:

      @Ray,

      I have added support for deleting posts using custom post types in v3.5 of the Plugin.

  • Tony says:

    Please build in the ability for the plug-in to run daily in some sort of cron job. This is exactly what I need but would like to have the plugin perform the operation daily.

  • Palo Stacho says:

    Hello,
    this is a helpful tool thank you. But I’m experiencing the problem that when I am re-importing the posts which I deleted with Bulk Delete the system is telling me that these posts are still existing. Is there a special switch or a commit function I have to activate?

    Thank you Palo

    • Palo Stacho says:

      Hello,
      I just saw that that I selected the “move to trash” radio button instead “delete permanently”. Everything runs fine. My question above is obosolete. Sorry for the inconvenience!
      Great tool!

  • Bill Simms says:

    Just downloaded bulk delete and am getting Warning: Missing argument on wp-includes. Any remedy?

  • Claudiu says:

    Issue in Wp 3.5

    Missing argument 2 for wpdb::prepare(), in /wp-includes/wp-db.php on line 990

  • Walter Cruz says:

    What about a option to delete all posts with empty content? ;)

  • Anonymous says:

    Hello, thank you for sharing the plugins you have developed with us. I installed the current version (2.2.2) of Bulk Delete and when I go to manage the plugin I get this error at the bottom of the page: “Fatal error: Call to undefined function get_taxonomies() in /var/www/html/portal/blog/wp-content/plugins/bulk-delete/bulk-delete.php on line 632″. Am I missing a file that contains that function or any idea why I am getting that error? I am currently using Firefox 19.0.2.

  • EIS says:

    Not sure what’s happening, but after the latest revision I am getting a 500 server error. Deleted the plugin, reinstalled but still have the server error.

  • Dear Sudarm

    Your plugin is wonderful but the last time I used it l(also the first time it also dieleted all my writing. I am a writer (short stories, essays. novel excerpt, everything.Obviously, my pages, categories are also considered posts. I’m a fraid to use it again until I solve this problem Meanwhile, the garbage “comments” which I guess are also considered “posts” are piling up. Oh. and all those comments. posts I was trying to delete were “pending”.

  • am trying to bulk delete 386 ‘General’ posts but it seems the software hangs or freezes. :( help please.

  • Tilmer says:

    When might you have a version of Bulk Delete compatible with WordPress v3.7? It looks like just what I am desperate for, but I am using version WordPress v3.7 and it is not running in that version. Thank you.

  • smarlinjrcot says:

    Hello. When I use this app to delete subscribers it just loads a blank page. Any suggestions?

  • KazNTU says:

    Can I use your plugin?

  • Anjan Phukan says:

    Hi, is it possible with your plugin to delete only posts which have no comments?

  • Brian says:

    I really find this plugin useful and wanted to add a feature request…. My main need–usgae is for managing subscribers – or rather spam subscribers

    Feature request:
    To be able to bulk delete users based on any submitted user data e.g. by email address where a text match is used. Examples
    -delete all pending users with email address /hotmail/i
    -delete all users with username /ugg/i

    Pro feature – allow this to be scheduled

  • Will Chapman says:

    Sudar

    What a great plugin and much under-rated!

    An evil-minded hacker found his/her way into my website and loaded my website up with over 500 posts. Fortunately, They were set to pending so the only real damage was that I was faced with having to delete them – Bulk Delete to the rescue! Thank you!

    Just one observation – I am using WP 3.4.2 with the Atahualpa Theme and after using Bulk Deleteto remove all ‘Pending’ posts I got a bit of a shock when the only Posts left showing under All Posts were the last three. The number of posts shown as remaining is over 300 and while they don’t show under ALL POSTS, I was relieved to find that they displayed correctly on the web. However, as they don’t show under All Posts I can’t open any to edit them – Any suggestions?

  • Sudar says:

    It takes sometimes for the cache to get cleared.

    Are the posts still not listed in the admin backend?

9 Tweetbacks so far

66 Trackbacks/Pingbacks so far

Leave a Reply