rows().remove

JavaScript
const table = $('#example').DataTable(); 
$('#example tbody').on( 'click', 'img.icon-delete', function () {    
  table
    .row( $(this).parents('tr') )
    .remove()
    .draw();
});
Source

Also in JavaScript: