Sometimes we find ourselves sorry we have generated something. Now we have to remove all that cruft divided over a bunch of directories!
Luckily, script/generate has a counterpart: script/destroy, which takes the same arguments as generate.
For example if you created a scaffold for table “item”, using
./script/generate scaffold item
you can destroy it with
./script/destroy scaffold item
If you’re using subversion you can add the -c switch to execute the svn commands:
./script/destroy scaffold -c item
—-
see also: GenerateDestroyGenerateBadBehavior