To delete everything from the beginning of the file to the current line, type d1G. This also deletes the line on which the cursor is located.