$result = db_query("SELECT nid FROM {node} where type='{whatever my
custom type is}'"); while ($row=db_fetch_object($result)){ node_delete($row->nid); } If your talking about images through imagefield, then that will delete the files also. One thing to note: Depending on how many nodes you have, this can choke. It is generally best to do bulk deletes like this through the batch api in batches of 50 or so. Jamie Holly http://www.intoxination.net http://www.hollyit.net On 1/26/2011 4:48 PM, j...@ayendesigns.com wrote:
|
- [development] D6 Cleaning up on module uninstall jeff
- Re: [development] D6 Cleaning up on module uninstall John Fiala
- Re: [development] D6 Cleaning up on module uninstall Jamie Holly
- Re: [development] D6 Cleaning up on module uninstall Dave Reid