Skip to main content
5 events
when toggle format what by license comment
Mar 9, 2011 at 18:35 history edited Greg CC BY-SA 2.5
added 110 characters in body
Mar 9, 2011 at 18:20 comment added Berdir There is node_delete() and node_delete_multiple(), see tim.plunket's answer, but that isn't designed to handle thousands of nodes, see api.drupal.org/api/drupal/modules--node--node.module/function/…. It loads all nodes and then iterates over them in a single request. So pretty much have to use a contrib module like bulkdelete if you want to delete hundreds or thousands of nodes.
Mar 9, 2011 at 17:56 comment added Greg @Berdir - Interesting. Is there a better built-in way to delete nodes?
Mar 9, 2011 at 17:47 comment added Berdir The problem with this approach is that other modules are not able to react and delete their information too. Depending on the content type, there is node specific information in the content_type table of that node, fields, taxonomies (a field too, actually), comments and so on. So you possibly end up with a lot of stale information in your database.
Mar 9, 2011 at 16:48 history answered Greg CC BY-SA 2.5