delete the unnecessary urls