Remove invalid path.