# Deleting the files that were created by a generator

**URL:** <https://www.ruby-forum.com/t/deleting-the-files-that-were-created-by-a-generator/110704>\
**Category:** Rails\
**Created:** [July 29, 2007, 11:14pm UTC](https://www.ruby-forum.com/t/deleting-the-files-that-were-created-by-a-generator/110704 "2007-07-29T23:14:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![oren](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/ecd19e/32.png) [@oren](https://www.ruby-forum.com/u/oren)\
**Post date:** [July 29, 2007, 11:14pm UTC](https://www.ruby-forum.com/t/deleting-the-files-that-were-created-by-a-generator/110704/1 "2007-07-29T23:14:21Z")

</div>

after running ruby script/generate   
many files are created automatically.

Let’s say I have made a mistake,  
Is there an easy way to delete them or do I have to manually do it?

Where can I find a good reference/tutorial for all those actions?  
I tried running ruby script/generate and it has a link to a website  
([http://rubyonrails.org/show/Generators](http://rubyonrails.org/show/Generators)) that doesn’t have anything!

I feel like the first days of using Ubuntu, everything takes me hours  
to figure out )-:

---

<div class="post-metadata">

**Author:** ![oren](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/ecd19e/32.png) [@oren](https://www.ruby-forum.com/u/oren)\
**Post date:** [July 29, 2007, 11:57pm UTC](https://www.ruby-forum.com/t/deleting-the-files-that-were-created-by-a-generator/110704/2 "2007-07-29T23:57:24Z")

</div>

> > ruby script/generate

use  
ruby script/destroy

to get rid of the generated files.

---

<div class="post-metadata">

**Author:** ![oren](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/ecd19e/32.png) [@oren](https://www.ruby-forum.com/u/oren)\
**Post date:** [July 30, 2007, 6:40am UTC](https://www.ruby-forum.com/t/deleting-the-files-that-were-created-by-a-generator/110704/3 "2007-07-30T06:40:37Z")

</div>

great, thanks
