comint-kill-whole-line is an interactive compiled Lisp function in `comint.el'.

(comint-kill-whole-line &optional COUNT)

Kill current line, ignoring read-only and field properties.
With prefix arg COUNT, kill that many lines starting from the current line.
If COUNT is negative, kill backward. Also kill the preceding newline,
instead of the trailing one. (This is meant to make C-x z work well
with negative arguments.)
If COUNT is zero, kill current line but exclude the trailing newline.
The read-only status of newlines is updated with `comint-update-fence',
if necessary.