document.getElementsByTagName('button')[0].addEventListener('click', e=> document.querySelectorAll('.td1').forEach(el=> el.closest('table').remove()));