Delete unneeded lines