[fix] deleting and creating attachments