Just delete them using sed. If the lines contain 0 and nothing else (spaces, tabs, control-characters) this should work:
Code:
sed -i.bck '/^0$/d' file
the -i.bck serves to edit the file in place, making a backup copy renamed with the specified suffix.