remove the useless path given