[shared links] remove related shared links when delete a repo/dir/file