Syndicate content

development

How To Selectively (or Completely) Delete Drupal Content By Node Type

Lots of times during the development of a Drupal site, I need to quickly delete all node content, often of a particular type. I've found that a quick and easy way to accomplish this is with the Devel Generate module, which comes as part of Devel project.

  • Download and install the module. I'm using Drupal 6.15 and Devel 6.x-1.18
  • Go to admin/generate/content
  • Select which node types you want to operate on.
  • Check the box for "Delete all content in these node types before generating new content."
  • Set the value for "How many nodes would you like to generate?" to zero.
  • Submit the page and content be gone.

Very handy tool indeed. Thanks "Devel"opers.

SVN Cheatsheet

We use Subversion (SVN) at the Creative Department to keep track of all changes made to client files and efficiently log a developer's intent when making a change. Because some on our team are not specifically predisposed to command line syntax and others actually fear it or harbor great disdain for anything lacking buttons, I put together this list of common SVN commands to help alleviate the pain.