Missing support to delete all data pages instances - @java is deprecated
I use the following code in a data transform to delete all instances of a data page type, with or without parameters.
@java("pega.getDeclarativePageUtils().deleteAllInstancesOfDeclarativePage(\"D_DataPageName\")")
This code works fine but recently I see the warning that @java is deprecated. I do want to keep using data transforms but I cannot find any alternative functions to replace it with.
What is the alternative for this?