Remove unused reference to a path