=== Bulk Delete ===
Contributors: sudar
Tags: post, comment, delete, bulk, mass, draft, revision, page
Requires at least: 3.3
Tested up to: 3.6.1
Donate Link: http://sudarmuthu.com/if-you-wanna-thank-me
Stable tag: 4.2
Bulk delete users based on user role and posts from selected categories, tags, post types, custom taxonomies or by post status like drafts, scheduled posts, revisions etc.
== Description ==
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](http://sudarmuthu.com/wordpress/bulk-delete/pro-addons#bulk-delete-by-custom-field))
- 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](http://sudarmuthu.com/wordpress/bulk-delete/pro-addons))
#### 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](http://sudarmuthu.com/wordpress/bulk-delete/pro-addons))
#### 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][2] 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](http://sudarmuthu.com/wordpress/bulk-delete/pro-addons===bulk-delete-by-custom-field). [Buy now](http://sudarmuthu.com/wordpress/bulk-delete/pro-addons===bulk-delete-by-custom-field)
- **Schedule auto delete of Posts by Categories** - Adds the ability to schedule auto delete of posts based on categories. [More details](http://sudarmuthu.com/wordpress/bulk-delete/pro-addons#bulk-delete-schedule-categories). [Buy now](http://sudarmuthu.com/out/buy-bulk-delete-category-addon)
- **Schedule auto delete of Posts by Tags** - Adds the ability to schedule auto delete of posts based on tags. [More details](http://sudarmuthu.com/wordpress/bulk-delete/pro-addons#bulk-delete-schedule-tags). [Buy now](http://sudarmuthu.com/out/buy-bulk-delete-tags-addon)
- **Schedule auto delete of Posts by Custom Taxonomies** - Adds the ability to schedule auto delete of posts based on custom taxonomies. [More details](http://sudarmuthu.com/wordpress/bulk-delete/pro-addons#bulk-delete-schedule-taxonomy). [Buy now](http://sudarmuthu.com/out/buy-bulk-delete-taxonomy-addon)
- **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](http://sudarmuthu.com/wordpress/bulk-delete/pro-addons#bulk-delete-schedule-post-types). [Buy now](http://sudarmuthu.com/out/buy-bulk-delete-post-type-addon)
- **Schedule auto delete of Pages** - Adds the ability to schedule auto delete of pages. [More details](http://sudarmuthu.com/wordpress/bulk-delete/pro-addons#bulk-delete-schedule-pages). [Buy now](http://sudarmuthu.com/out/buy-bulk-delete-pages-addon)
- **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](http://sudarmuthu.com/wordpress/bulk-delete/pro-addons#bulk-delete-schedule-post-status). [Buy now](http://sudarmuthu.com/out/buy-bulk-delete-post-status-addon)
- **Schedule auto delete of users by User Role** - Adds the ability to schedule auto delete of users based on user role. [More details](http://sudarmuthu.com/wordpress/bulk-delete/pro-addons#bulk-delete-schedule-users-by-user-role). [Buy now](http://sudarmuthu.com/out/buy-bulk-delete-users-by-role-addon)
### Development
The development of the Plugin happens over at [github][6]. If you want to contribute to the Plugin, fork the [project at github][6] 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](http://sudarmuthu.com/blog/contributing-to-project-hosted-in-github).
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 sticky posts
- 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
- 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][7]
- 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][1]
- If you like the Plugin, then kindly leave a review/feedback at [WordPress repo page][8].
- If you find this Plugin useful or and wanted to say thank you, then there are ways to [make me happy](http://sudarmuthu.com/if-you-wanna-thank-me) :) and I would really appreciate if you can do one of those.
- Checkout other [WordPress Plugins][5] that I have written
- If anything else, then contact me in [twitter][3].
[1]: http://sudarmuthu.com/wordpress/bulk-delete
[2]: http://sudarmuthu.com/wordpress/bulk-move
[3]: http://twitter.com/sudarmuthu
[4]: http://sudarmuthu.com/blog
[5]: http://sudarmuthu.com/wordpress
[6]: https://github.com/sudar/bulk-delete
[7]: https://github.com/sudar/bulk-delete/issues
[8]: http://wordpress.org/extend/plugins/bulk-delete/
== Translation ==
The Plugin currently has translations for the following languages.
* Dutch (Thanks Rene)
* Brazilian Portuguese (Thanks Marcelo of Criacao de Sites em Ribeirao Preto)
* German (Thanks Jenny Beelens)
* Turkish Portuguese (Thanks Bahadir Yildiz)
* Spanish (Thanks Brian Flores)
* Italian (Thanks Paolo Gabrielli)
* Bulgarian (Thanks Nikolay Nikolov)
* Russian (Thanks Maxim Pesteev)
* Lithuanian (Thanks Vincent G)
* Hindi (Thanks Love Chandel)
* Serbian (Thanks Diana)
* Gujarati (Thanks Puneet)
The pot file is available with the Plugin. If you are willing to do translation for the Plugin, use the pot file to create the .po files for your language and let me know.
== Credits ==
Thanks Martin Capodici for providing the code to implement the "delete specific page" feature.
Thanks to [Time picker addon](http://trentrichardson.com/examples/timepicker/) JavaScript library, which the Plugin uses.
== 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.
== Frequently Asked Questions ==
= After installing the Plugin, I just see a blank page. =
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.
= How do I disable different sections of the Plugin =
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.
= How do I know what are the current values for these options configured in my server? =
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
= Is it possible to restore the posts that I have deleted through the Plugin? =
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**.
= Is it possible that some Plugin are not compatible with Bulk Delete? =
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](http://wordpress.org/plugins/the-events-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.
= Is it possible to schedule deletion of posts =
The ability to schedule deletion of posts is available as a pro addon.
== Screenshots ==
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. The above screenshot shows how you can delete posts by category.
3. The above screenshot shows how you can delete posts by tags.
4. The above screenshot shows how you can delete posts by custom taxonomies.
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. The above screenshot shows how you can schedule auto delete of posts. Note that this feature is available only when you buy [pro addons](http://sudarmuthu.com/wordpress/bulk-delete/pro-addons).
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](http://sudarmuthu.com/wordpress/bulk-delete/pro-addons).
8. The above screenshot shows how you can enable/disable different sections of the Plugin.
== Readme Generator ==
This Readme file was generated using wp-readme, which generates readme files for WordPress Plugins.
HISTORY.md