To delete a line, position the cursor anywhere on the line and type dd. The line and the space it occupied are removed.