title: How to reload dataTable after deleting records/data?
body: <p>I have generated records and each row has delete button, And when I click delete button it will delete the records from the db. Also, after delete it will reload dataTable. Any Help for this?</p>
  
  <p>DataTables:</p>
  
  <pre><code>var table = $('#table').DataTable({
  
      "processing": true,
  
       //some settings?
  });
  </code></pre>
  
  <p>jQuery:</p>
  
  <pre><code>$(document).on('click', '[id^="delete-product-"]', function() {
  
      var id = this.id.split('-').pop();
  
      $.ajax({
          type: 'post',
          url: 'my_controller/delete_product',
          dataType: 'json',
          data: {id: id},
          success: function(callback)
          {
              //What should I code here, that can't reload entire page, only the table 
              //after deleting records
          },
          error: function(status)
          {
              console.log(status);
          }
      });
  });
  </code></pre>
  
  <p>Any help would be appreciated. Thank you in Advance</p>