Monday 2 September 2013

Deleting all nodes of a content type using drush and devel

While developing the open source data logger (started here but expanded to post from Arduino to Drupal) the need to regularly delete all content of a given type arises fairly regularly. This can be done through the user interface with the Devel module but it is much quicker to use Drush:

drush genc 0 --kill --types=article

ShareThis

Copyright