Remove attachments BEFORE we clear them.