As per the question, I understand that you are removing the values from the page list: splitlist on conditional basis.
You can follow the below approach to do that through data-transform.
You can loop through the pagelist and set “pyDeletedObject” to true for the pages which need to be removed and then use RemoveDeletedObjects function to remove the selected pages.
Please find the below screenshot for more details.