const deleteFirstElemsCount = 2;
let elems = Array.from(document.querySelectorAll("table tr") || []);
elems.forEach((elem,i)=>{
if(i<deleteFirstElemsCount){
elem.remove();
};
});
$('table tr').each(function(i){
if ( i >= 0 && i <= 6 ) {
$(this).remove();
}
});