Added prevent deletion of attachments