Deleting the files that were created by a generator

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
( that doesn’t have anything!

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

ruby script/generate

ruby script/destroy

to get rid of the generated files.

great, thanks