Closed (outdated)
Project:
Delete all
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Jan 2008 at 07:17 UTC
Updated:
4 Sep 2023 at 09:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
z.stolar commentedThe attached patch adds the functionality of selectively deleting nodes by type.
Currently you need to go to admin/content/delete_content/something_which_is_not_a_content_type to get a list of all node types, with counters, and links to delete each content type's nodes.
This patch should be improved to:
- change links with checkboxes, so you can delete few content types' nodes at the same time
- allow a direct link to the list, without that ugly url mentioned above.
Accessing the normal path (admin/content/delete_content) will propose to delete ALL content.
Comment #2
demeester_roel commentedThis patch has minor bug.. When deleting content of speficic content type.. the {sequences} for node_nid should NOT be reset to 1
Comment #3
z.stolar commentedYou're right, there should be one more check.
I also added a different message in case of a type deletion.
Comment #4
kbahey commentedPatch no longer applies.
Please reroll.
Comment #5
giorgio79 commentedOk, so it is not possible to delete content by type? I just installed this module but hte only option is delete all content.
Cheers,
G
Comment #6
z.stolar commentedAs far as I know - if you use the patch at #3, you'll be able to delete by type.
However, Khalid noted it isn't valid - maybe it was patched against the wrong version.
Can you re-patch?
Comment #7
edzhus commentedthanks, this patch #3 works for me!
Comment #8
kbahey commentedThe patch does not apply.
Can someone reroll against what is in CVS for D5?
We also need a port to D6.
Comment #9
z.stolar commentedGoing roughly over the code, it looks as if this feature is already implemented...
If it does, this thread can be closed.
Comment #10
jackspiv commentedHi,
I think I'm having same problem.
I applied patch in #3 and tried to go to "admin/content/delete_content/something_which_is_not_a_content_type" and got a page not found error.
Ideas?
Comment #11
ngmaloney commentedHi All,
I needed to delete all nodes by type and also delete taxonomy terms by vocabulary (vid). Rather than create a new module I added the functionality to this module.
There is now a new menu item under: Administer -> Site Configuration -> Bulk Delete
It has a form for deleting taxonomy terms by vocabulary and deleting nodes by type.
It probably could use some more testing but so far it got the job done. I plan on adding DRUSH functionality next. Please message me any bugs and I'm happy to fix them.
Comment #12
kbahey commentedThank you, I included your patch to the 5.x-1.x-dev version.
This needs to be ported to the 6.x version as well.
Comment #13
ngmaloney commentedI'll submit a D6 patch in the coming days. Thanks for checking out the D5 patch!
Comment #14
jruberto commentedHi all,
More functionality! Added to the "Bulk Delete" form:
Delete nodes by taxonomy term.
Nice module, very useful!
Best,
j
Comment #15
kbahey commented@jruberto
Thank you for the patch, but this issue is left as "to be ported" for the delete by content type patch. Adding patches for separate features is confusing.
Please open a new issue for the new patch, and try to create patches for 5.x as well as 6.x.
Thanks again.
Comment #16
jruberto commentedwill do. sorry to break protocol, was pretty cross-eyed by the time I rolled this patch.. have to fix some code formatting in the patch too... coming soon. thanks!
Comment #17
avpadernoI am closing this issue because is for a branch that is now not supported. Only branches compatible with Drupal 7, Drupal 9, or Drupal 10 are now supported.