Delete unneccessary links