[Cmd]+[Delete]
or
[Cmd]+[Forward delete]
deletes part or whole line back or forwards from the current cursor position — i.e. from cursor to line start or end. In the case of line end it is to the Text windows soft line break and not the next hard line/paragraph break.