Remove attachments before clearing