# How do i delete mongrel temp file

**URL:** <https://www.ruby-forum.com/t/how-do-i-delete-mongrel-temp-file/197237>\
**Category:** Rails\
**Created:** [September 30, 2010, 9:43am UTC](https://www.ruby-forum.com/t/how-do-i-delete-mongrel-temp-file/197237 "2010-09-30T09:43:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amit-singh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9f8e36/32.png) [@amit-singh](https://www.ruby-forum.com/u/amit-singh)\
**Post date:** [September 30, 2010, 9:43am UTC](https://www.ruby-forum.com/t/how-do-i-delete-mongrel-temp-file/197237/1 "2010-09-30T09:43:02Z")

</div>

Hii all,  
In my rails application am uploading some large file(1 Gb),and  
when go windows temp folder ,mongrel temporary files are gathered  
there,but i want to delete ,its eating disk space …  
Could anyone tell me how do that??

Thanks

---

<div class="post-metadata">

**Author:** ![amit-singh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9f8e36/32.png) [@amit-singh](https://www.ruby-forum.com/u/amit-singh)\
**Post date:** [September 30, 2010, 10:48pm UTC](https://www.ruby-forum.com/t/how-do-i-delete-mongrel-temp-file/197237/2 "2010-09-30T22:48:24Z")

</div>

I have worked with mongrel. From what I remember, the temp files of  
mongrel  
are stored in RAILS\_ROOT/tmp/pid or something like that.

I used to delete them with one or some of the following rake tasks:

rake tmp:cache:clear # Clears all files and  
directories  
in tmp/cache  
rake tmp:clear # Clear session, cache, and  
socket  
files from tmp/  
rake tmp:create # Creates tmp directories for  
sessions, cache, sockets, and pids  
rake tmp:pids:clear # Clears all files in tmp/pids  
rake tmp:sessions:clear # Clears all files in  
tmp/sessions  
rake tmp:sockets:clear # Clears all files in  
tmp/sockets

Hope I have helped in a way.

Daniel GaytÃ¡n

2010/9/30 Amit T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![amit-singh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9f8e36/32.png) [@amit-singh](https://www.ruby-forum.com/u/amit-singh)\
**Post date:** [October 1, 2010, 7:33am UTC](https://www.ruby-forum.com/t/how-do-i-delete-mongrel-temp-file/197237/3 "2010-10-01T07:33:57Z")

</div>

Daniel GaytÃ¡n wrote:

> I have worked with mongrel. From what I remember, the temp files of  
> mongrel  
> are stored in RAILS\_ROOT/tmp/pid or something like that.
> 
> I used to delete them with one or some of the following rake tasks:
> 
> rake tmp:cache:clear # Clears all files and  
> directories  
> in tmp/cache  
> rake tmp:clear # Clear session, cache, and  
> socket  
> files from tmp/  
> rake tmp:create # Creates tmp directories for  
> sessions, cache, sockets, and pids  
> rake tmp:pids:clear # Clears all files in tmp/pids  
> rake tmp:sessions:clear # Clears all files in  
> tmp/sessions  
> rake tmp:sockets:clear # Clears all files in  
> tmp/sockets
> 
> Hope I have helped in a way.
> 
> Daniel GaytÃ¡n
> 
> 2010/9/30 Amit T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

Thanks Daniel for your kind information…

But Daniel when i am trying to upload large files ,nothing is being  
gethering in temp folder(RAILS\_ROOT/tmp/pid) and i also checked other  
folder inside and found nothing there .  
In my case files are gethering in  
TEMP(C:\DOCUME~1\x0138466\LOCALS~1\Temp) folder and to get rid off them  
i have to restart server,but i don’t want to restart my server…
