delete existing attachments before inserting new one