Remove lines from datatable until its empty

Have a look here: