Deleting nodes using drush

Problem

How to delete nodes using drush.

Solution

First install devel module once that done you can type this command:

drush genc 0 --kill --types="mycontent"

this will delete all content type that match mycontent