# Attachment\_fu destroy

**URL:** <https://www.ruby-forum.com/t/attachment-fu-destroy/110646>\
**Category:** Rails\
**Created:** [July 28, 2007, 8:37pm UTC](https://www.ruby-forum.com/t/attachment-fu-destroy/110646 "2007-07-28T20:37:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Acroterra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/8e7dd6/32.png) [@Acroterra](https://www.ruby-forum.com/u/Acroterra)\
**Post date:** [July 28, 2007, 8:37pm UTC](https://www.ruby-forum.com/t/attachment-fu-destroy/110646/1 "2007-07-28T20:37:55Z")

</div>

I am using attachment\_fu to upload images and I am using the  
filesystem to store the images.

Does anybody know how to delete the image file in the filesystem when  
an image object is destroyed?? This way I won’t have any orphaned  
files.

Thanks,  
Wes
