Oh okay… then we need to go in a different approach…
First you need to sort the datatable in descending order so that you get the latest time values to the first set of records.
Now add a new column to hold a status flag of records which you want to remove
Now you will need to loop through the datatable to check each records… you can use an if condition inside the for each row loop to check it.
If those are to be deleted, update the new column row in the datatable we added.
Row(“Status”) = “Delete”
After you have marked it with the records you want to delete, then you can use the filter datatable activity to filter the records