For a better user experience, first erase (hide) the rows that were deleted. Then make the ajax call for batchdelete. On confirmation really delete the rows.