d is delete and G moves to the end of the file, so dG will delete to the end of the file. It includes the entire current line though; if you're mid-line and want to preserve everything before the current position you need to use Mark's methodMark's method
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/