To delete text, use the following commands:

Command What It Does
:5,26d Delete lines 5 through 26
5dd Delete 5 lines
5dw Delete five words
dlG Delete from beginning of file to end of cursor
dd Delete line containing the cursor
dG Delete to end of line
wD Delete line to the right of cursor (from cursor position to end of line)
X(uppercase) Delete character to the left of the cursor
x(lowercase) Delete character at the cursor