Delete only table row

Delete only table row

I have a table where I have the ability to remove table rows using $('#tr_1').remove(); for example

It works fine until I try to delete the last table row and then the only row left will not delete

any ideas why?