How to Remove the unwanted Blank Lines

I have a file with the below data, i would like to remove the end blank lines with no data. I used the below commands but could not able to succeed, could you please shed some light.

Commands Used:

sed '/^$/d' input.txt > output.txt
grep -v '^$' input.txt > output.txt

input.txt file data:

derek,21345,20000,,,
sam,314343,30000,,,
kevin,989823,40000,,,
,,,
,,,
,,,

Thanks & Regards,
Ariean.

grep -v '^,,,' input.txt > output.txt

Thanks for your reply, but what if i have more commas does your command is specific to number of commas in the input file.

This would assume the first column always had a value.

grep -v '^,.' input.txt > output.txt
grep '[^,]' myFile

This would remove any line that did not contain any characters or numbers:

grep '[A-Za-z0-9]' input.txt > output.txt