(Edited to include commenter’s good additions:)
D or its equivalent
d$ will delete the rest of the line and leave you in command mode.
c$ will delete the rest of the line and put you in insert mode, and new text will be appended to the line.
This is part of
vimtutor, excellent “reads” for vim beginners.