Grep for empty file

I have a program that takes a file in which I use a sed to remove some data that is not needed. If all of the data is removed. I want to grep for that in the file and print that there is no data left in the file. When I use sed, I replace a word with nothing but it still seems to leave a return carriage. Please give me some ideas on how to do this. Thanks!

if egrep . file > /dev/null
then
    # File is not empty
else
    # File is empty (except for line feeds)
fi
if [ -s file ]; then
  echo not empty
else
  echo empty
fi

The OP says that sed leaves a \n in the "empty file". So its size will be 1 byte and your test will show not empty.

You could also use the stat command:

if [[ $(stat -c %s file) == 1 ]];then echo "kind of empty";fi

OK, I see.
-deleted-

The stat command is not standard, and there are different versions:

$ stat -c %s .bashrc 
stat: illegal option -- c
usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]

---------- Post updated at 06:49 PM ---------- Previous update was at 06:48 PM ----------

Fix the sed command to delete the line instead of just the word.