The HTMLTableElement.deleteTHead() removes the <thead> element from a given <table>.
deleteTHead()None.
None (undefined).
This example uses JavaScript to delete a table's header.
<table>
<thead>
<tr>
<th>Name</th>
<th>Occupation</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bob</td>
<td>Plumber</td>
</tr>
<tr>
<td>Jim</td>
<td>Roofer</td>
</tr>
</tbody>
</table>let table = document.querySelector("table");
table.deleteTHead();