remove dead symlinks and update index to reflect that