jquery destroy elemen code example
Example 1: remove item jquery
$( ".hello" ).remove();
Example 2: jquery delete buton
<div class="container">
<div class="goodbye">Goodbye</div>
</div>
$( ".hello" ).remove();
<div class="container">
<div class="goodbye">Goodbye</div>
</div>