The HTMLTableElement.deleteTHead() removes the thead element from a given table.
HTMLTableElement.deleteTHead()
MDN Reference