delete all the rows of table javascript

JavaScript
$("#table_of_items tr").remove(); 
Source

Also in JavaScript: