The HTMLTableElement.deleteTFoot() method removes the <tfoot> element from a given <table>.
deleteTFoot()None.
None (undefined).
This example uses JavaScript to delete a table's footer.
<table>
<thead>
<tr>
<th>Name</th>
<th>Score</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bob</td>
<td>541</td>
</tr>
<tr>
<td>Jim</td>
<td>225</td>
</tr>
</tbody>
<tfoot>
<tr>
<th>Average</th>
<td>383</td>
</tr>
</tfoot>
</table>let table = document.querySelector("table");
table.deleteTFoot();