# Ruby2Exe with Rails is not cleaning the temp files

**URL:** <https://www.ruby-forum.com/t/ruby2exe-with-rails-is-not-cleaning-the-temp-files/122510>\
**Category:** Rails\
**Created:** [December 8, 2007, 3:07pm UTC](https://www.ruby-forum.com/t/ruby2exe-with-rails-is-not-cleaning-the-temp-files/122510 "2007-12-08T15:07:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![juantar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/919ad9/32.png) [@juantar](https://www.ruby-forum.com/u/juantar)\
**Post date:** [December 8, 2007, 3:07pm UTC](https://www.ruby-forum.com/t/ruby2exe-with-rails-is-not-cleaning-the-temp-files/122510/1 "2007-12-08T15:07:42Z")

</div>

I packed a Rails application using the instructions from the excellent  
Ruby2exe page. However, when I run the exe, use the application and then  
hit Ctrl-C to finish the application, Ruby2Exe and tar2ruby do not  
clean the temp files they created. Any way of making Ruby2Exe clean the  
temp files when the Rails application ends?

Best regards,  
Juan

---

<div class="post-metadata">

**Author:** ![juantar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/919ad9/32.png) [@juantar](https://www.ruby-forum.com/u/juantar)\
**Post date:** [December 11, 2007, 2:23am UTC](https://www.ruby-forum.com/t/ruby2exe-with-rails-is-not-cleaning-the-temp-files/122510/2 "2007-12-11T02:23:31Z")

</div>

Found the solution. I am posting the solution at

> **[Rubyscript2Exe is not deleting the temp files once it is done: SOLVED!](https://jptarqu.blogspot.com/2007/12/rubyscript2exe-is-not-deleting-temp.html)**
>
> Is your Ruby on rails application packed in a exe created by Rubyscript2Exe? Is Ruby2Exe not deleting the temp files once it is done? I came...
