nbutlast

nbutlast is a compiled Lisp function in `subr.el'.

(nbutlast LIST &optional N)

Modifies LIST to remove the last N elements.
If N is omitted or nil, remove the last element.