Código PHP:
function recorre(){
tab = document.getElementByTagName('table');
for (i=0; i<tab.getElementsByTagName('tr').length; i++) {
borrar = tab.getElementsByTagName('td')[i];
if(borrar =='Borrar'){
tab.removeChild(borra.parentNode.parentNode);
}
}
}