# Delete scaffold

**URL:** <https://www.ruby-forum.com/t/delete-scaffold/92666>\
**Category:** Rails\
**Created:** [April 22, 2007, 9:22pm UTC](https://www.ruby-forum.com/t/delete-scaffold/92666 "2007-04-22T21:22:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![smital](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/4bbf92/32.png) [@smital](https://www.ruby-forum.com/u/smital)\
**Post date:** [April 22, 2007, 9:22pm UTC](https://www.ruby-forum.com/t/delete-scaffold/92666/1 "2007-04-22T21:22:37Z")

</div>

Hi,  
I created a scaffolding using the “generate” script for a table, lets  
call it “foo”, in MySql database. I have now modified the database by  
adding new tables and deleting the table “foo”. How do I now delete  
the scaffolding against this table in the rails framework? I don’t  
want to manually go into app/ directory and delete the “foo” model,  
view, controller in case there is some residue left behind. Is there a  
better way of solving this problem.  
Thanks for your help in advance,  
Swati

---

<div class="post-metadata">

**Author:** ![smital](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/4bbf92/32.png) [@smital](https://www.ruby-forum.com/u/smital)\
**Post date:** [April 22, 2007, 10:23pm UTC](https://www.ruby-forum.com/t/delete-scaffold/92666/2 "2007-04-22T22:23:43Z")

</div>

ruby script/destroy scaffold foo

---

<div class="post-metadata">

**Author:** ![smital](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/4bbf92/32.png) [@smital](https://www.ruby-forum.com/u/smital)\
**Post date:** [April 22, 2007, 10:23pm UTC](https://www.ruby-forum.com/t/delete-scaffold/92666/3 "2007-04-22T22:23:43Z")

</div>

smital wrote:

> Hi,  
> I created a scaffolding using the “generate” script for a table, lets  
> call it “foo”, in MySql database. I have now modified the database by  
> adding new tables and deleting the table “foo”. How do I now delete  
> the scaffolding against this table in the rails framework? I don’t  
> want to manually go into app/ directory and delete the “foo” model,  
> view, controller in case there is some residue left behind. Is there a  
> better way of solving this problem.  
> Thanks for your help in advance,  
> Swati

script/destroy Scaffold?
