I saw the sed examples, but no matter how I write that it won\'t delete my first line. Actually, I did more tests and it won\'t delete my first line either, so
sed
sed -i '$ d' filename. The -i flag edits file in place.
sed -i '$ d' filename
-i