I assume id as a row-index-number and not actually an id-number? But your functions is named deleteRow() which over-writes the DOM deleteRow() method. So your function just calls itself recursively without deleting anything.
Change the name of your function to something other than deleteRow()
and (I recommend for clarity) rename the parameter to perhaps ind, or index.
xelawho is shadowing me, or me him