Changed SHARE_DENY_WRITE to SHARE_EXCLUSIVE to allow deleting of attachments