delete-forward-char

delete-forward-char is an interactive compiled Lisp function in `simple.el'.

It is bound to <deletechar>.

(delete-forward-char N &optional KILLFLAG)

This function is for interactive use only;
in Lisp code use `delete-char' instead.

Delete the following N characters (previous if N is negative).
If Transient Mark mode is enabled, the mark is active, and N is 1,
delete the text in the region and deactivate the mark instead.
To disable this, set variable `delete-active-region' to nil.

Optional second arg KILLFLAG non-nil means to kill (save in kill
ring) instead of delete. Interactively, N is the prefix arg, and
KILLFLAG is set if N was explicitly specified.