Hi! I need to know if there is an special module or a simple way to remove all contents of a particular type of content. I mean I need to delete hundreds of products in my ubercart, so I need to delete all nodes that corresponds to node type product, and i need to do this work in a simple way. Thanks in advance best regards *"La perseverancia es un árbol de raíces amargas, pero de frutos muy dulces."* Gastón Pablo Perez Email: gpperez@gmail.com Web: http://cv.gpperez.com.ar Ubuntu User #30611
You can create a views_bulk_operations view, select all the nodes of a certain type and choose the "Delete node" operation. http://drupal.org/project/views_bulk_operations Thanks! steve 2010/10/13 Gastón Pablo Pérez <gpperez@gmail.com>
Hi!
I need to know if there is an special module or a simple way to remove all contents of a particular type of content. I mean I need to delete hundreds of products in my ubercart, so I need to delete all nodes that corresponds to node type product, and i need to do this work in a simple way.
Thanks in advance
best regards
*"La perseverancia es un árbol de raíces amargas, pero de frutos muy dulces."*
Gastón Pablo Perez Email: gpperez@gmail.com Web: http://cv.gpperez.com.ar Ubuntu User #30611
On Wed, 2010-10-13 at 20:47 -0300, Gastón Pablo Pérez wrote:
Hi!
I need to know if there is an special module or a simple way to remove all contents of a particular type of content. I mean I need to delete hundreds of products in my ubercart, so I need to delete all nodes that corresponds to node type product, and i need to do this work in a simple way.
Thanks in advance
best regards
"La perseverancia es un árbol de raíces amargas, pero de frutos muy dulces."
May be the devel module would carry such feature. You should check it. Another solution is to use Views Bulk Operation, with it, you will be able to create a node view based on content type and other filters, then delete all of them in one batch. Pierre.
On Oct 13, 2010, at 5:58 PM, Pierre Rineau wrote:
On Wed, 2010-10-13 at 20:47 -0300, Gastón Pablo Pérez wrote:
Hi!
I need to know if there is an special module or a simple way to remove all contents of a particular type of content. I mean I need to delete hundreds of products in my ubercart, so I need to delete all nodes that corresponds to node type product, and i need to do this work in a simple way.
Thanks in advance
best regards
"La perseverancia es un árbol de raíces amargas, pero de frutos muy dulces."
May be the devel module would carry such feature. You should check it.
Another solution is to use Views Bulk Operation, with it, you will be able to create a node view based on content type and other filters, then delete all of them in one batch.
You can do this with content administration in Drupal core. Filter by content type, select all and delete. Repeat for each page. VBO will allow you to load them all in one page, and it's useful anyway, so you may opt for that anyway. Laura
If I had to do this, I would use the devel module's PHP evaluation. Install devel, go to http://www.yoursite.com/devel/php and enter the following code snippet: // Begin code snippet $results = db_query("SELECT nid FROM {node} WHERE type='product' LIMIT 200"); while ($r = db_fetch_object($results)) { node_delete($r->nid); } // end code snippet This will delete 200 nodes each pass. Of course, adjust 'product' to the machine name of the content type you want to delete. Brian On 10-10-13 07:58 PM, Pierre Rineau wrote:
On Wed, 2010-10-13 at 20:47 -0300, Gastón Pablo Pérez wrote:
Hi!
I need to know if there is an special module or a simple way to remove all contents of a particular type of content. I mean I need to delete hundreds of products in my ubercart, so I need to delete all nodes that corresponds to node type product, and i need to do this work in a simple way.
Thanks in advance
best regards
"La perseverancia es un árbol de raíces amargas, pero de frutos muy dulces."
May be the devel module would carry such feature. You should check it.
Another solution is to use Views Bulk Operation, with it, you will be able to create a node view based on content type and other filters, then delete all of them in one batch.
Pierre.
Please refrain from crossposting to multiple mailing lists. The filter and delete options on /admin/content/node will delete up to 50 products at a time. If you need more try <http://drupal.org/project/views_bulk_operations>. On Oct 13, 2010, at 4:47 PM, Gastón Pablo Pérez wrote:
Hi!
I need to know if there is an special module or a simple way to remove all contents of a particular type of content. I mean I need to delete hundreds of products in my ubercart, so I need to delete all nodes that corresponds to node type product, and i need to do this work in a simple way.
Thanks in advance
best regards
"La perseverancia es un árbol de raíces amargas, pero de frutos muy dulces."
Gastón Pablo Perez Email: gpperez@gmail.com Web: http://cv.gpperez.com.ar Ubuntu User #30611
On 14 Out 2010 00h47 WEST, gpperez@gmail.com wrote:
Hi!
I concur on VBO as others have suggested. It has the added benefit of being able to use batch API while giving you all the power of views to do your content management operations. This means that long delete jobs, like the one you want to do, get chopped up in conveniently sized chunks so that you don't hit the dreaded max execution time exceeded snafu with PHP.
I need to know if there is an special module or a simple way to remove all contents of a particular type of content. I mean I need to delete hundreds of products in my ubercart, so I need to delete all nodes that corresponds to node type product, and i need to do this work in a simple way.
--- appa
Check the delete_all module http://drupal.org/project/delete_all 2010/10/13 Gastón Pablo Pérez <gpperez@gmail.com>
Hi!
I need to know if there is an special module or a simple way to remove all contents of a particular type of content. I mean I need to delete hundreds of products in my ubercart, so I need to delete all nodes that corresponds to node type product, and i need to do this work in a simple way.
Thanks in advance
best regards
*"La perseverancia es un árbol de raíces amargas, pero de frutos muy dulces."*
Gastón Pablo Perez Email: gpperez@gmail.com Web: http://cv.gpperez.com.ar Ubuntu User #30611
-- Khalid M. Baheyeldin 2bits.com, Inc. http://2bits.com Drupal optimization, development, customization and consulting. Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra Simplicity is the ultimate sophistication. -- Leonardo da Vinci
The Devel Generate module also does this, though it's a semi-secret. If you go to generate content, select only one content type (or the types you wish to delete), choose to generate zero (0) new nodes, and check the box to delete existing, Devel Generate will remove all nodes of the selected type(s) and then not generate new ones. On Wed, Oct 13, 2010 at 8:48 PM, Khalid Baheyeldin <kb@2bits.com> wrote:
Check the delete_all module
http://drupal.org/project/delete_all
2010/10/13 Gastón Pablo Pérez <gpperez@gmail.com>
Hi!
I need to know if there is an special module or a simple way to remove all contents of a particular type of content. I mean I need to delete hundreds of products in my ubercart, so I need to delete all nodes that corresponds to node type product, and i need to do this work in a simple way.
Thanks in advance
best regards
*"La perseverancia es un árbol de raíces amargas, pero de frutos muy dulces."*
Gastón Pablo Perez Email: gpperez@gmail.com Web: http://cv.gpperez.com.ar Ubuntu User #30611
-- Khalid M. Baheyeldin 2bits.com, Inc. http://2bits.com Drupal optimization, development, customization and consulting. Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra Simplicity is the ultimate sophistication. -- Leonardo da Vinci
-- Ken Rickard agentrickard@gmail.com http://ken.therickards.com
participants (9)
-
António P. P. Almeida -
Brian Vuyk -
Dylan Wilder-Tack -
Gastón Pablo Pérez -
Ken Rickard -
Khalid Baheyeldin -
Laura -
Pierre Rineau -
Steve Karsch