Replaced deleteProduct function with DRY deleteRow function