Bulk Delete Manager

Component ID

2278797

Component name

Bulk Delete Manager

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module provides conditional nodes delete functionality for Drupal nodes.
This is designed keeping in mind the scenario when we need to delete some nodes conditionally for example:
When I wish to delete all nodes of content-type="Articles,Basic page",
where are not nodes of any menu like "main-menu, my-custom-menu"
also I wish to retain some special nodes with ids "1076,1887,116,5".
Thus to do this I have to write a simple drush command:

drush bulk-nodes-remove Article,Basic/ page --save-menu-nodes=main-menu,my-custom-menu --exclude-nodes=1076,1887,116,5 -y

This module also provides an interactive drush like :
$ drush bulk-nodes-remove Article,Basic/ page --save-menu-nodes=main-menu,my-custom-menu --exclude-nodes=1076,1887,116,5
Mapping arguments provided to available content types...
Mapping found for Article
No content type match found for Basic/
Proceed excluding mismatched types? (y/n): y
Here it's asks user for input to proceed if some of the content-types matches and some don't.

proceeding using Article
Menu found main-menu
No content type match found for my-custom-menu
Proceed excluding mismatched types? (y/n):y
Similarly for partial menu-type match.

Future enhancements:
This module have a long @TODO list:
1) Adding more conditional node delete options like --date-start, --date-end,
This will help us to delete nodes in range of specific publish dates.
2) Adding delete-rule using ctools plugins where a developer can use this module as API and add his own delete commands.
3) Fields specific conditional delete option in drush command of the selected content-type.
4) Role specific access.
5) A good Admin interface to do everything we can do by DRUSH.
6) Fix for no content deletion error.
7) Many more.

Contributors and Use cases invited!