In your example it worked, but my data is a little bit different (and it is not working):
lines={{1. 10.}, {2. 20.}, {}, {}, {3. 30.}, {4. 40.}, ...}
Reading Mathematica help about DeleteCases, I understood that it can be used to delete elements from a line, but not delete the line itself...