butlast

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

(butlast LIST &optional N)

Return a copy of LIST with the last N elements removed.
If N is omitted or nil, the last element is removed from the
copy.