# How To Delete An Email's Attachment?

**URL:** <https://www.ruby-forum.com/t/how-to-delete-an-emails-attachment/93272>\
**Category:** Ruby\
**Created:** [April 30, 2007, 10:38am UTC](https://www.ruby-forum.com/t/how-to-delete-an-emails-attachment/93272 "2007-04-30T10:38:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![starmaerker](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e9bcb4/32.png) [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Post date:** [April 30, 2007, 10:38am UTC](https://www.ruby-forum.com/t/how-to-delete-an-emails-attachment/93272/1 "2007-04-30T10:38:18Z")

</div>

Hello,

Does anybody know whether or not it is possible to delete attachments  
from an email stored on an IMAP server?

I have looked at TMail and Net::IMAP but wasn’t able to see how to do  
it. Furthermore I couldn’t tell if it was impossible or simply not  
provided by those libraries. I also skimmed RFC2822 but that doesn’t  
mention attachments.

Thanks and regards,  
Andy S.

---

<div class="post-metadata">

**Author:** ![starmaerker](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e9bcb4/32.png) [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Post date:** [April 30, 2007, 4:01pm UTC](https://www.ruby-forum.com/t/how-to-delete-an-emails-attachment/93272/2 "2007-04-30T16:01:47Z")

</div>

On Monday 30 April 2007 08:37, Andrew S. wrote:

> Thanks and regards,  
> Andy S.

as far as i know there’s no way to remove attachment without removing  
e-mail,  
but if you find solution please share … i’ll be working with imap soon  
and  
it could came in handy
