You could remove the content of parameterized data page through an activity, as told by using Remove/Page-Remove with the passed parameter. ex-D_YourDataPage[ParamName:ParamValue]
Though, if you wish to flush all the available instances of a particular data page, call "FlushDeclarativePage" Activity and pass page name as the parameter to be flushed along with parameter pyFlushAll as true.
Or else, you can invoke an OOTB function "pega.getDeclarativePageUtils().flushPage(<YourPageName>));" to flush out data page instances.
Hope it helps in your requirement, please notify us if it does by marking this post as helpful/answered.
I am using Pega 7.3.0. I would like to delete all instances of a data page we'll call D_Page. There is D_Page, D_Page..D_Page. After reading this post I wrote an activity that has this step:
Call Rule-Declare-Pages.FlushDeclarativePage. The two params open to me are "PageName" and "result" but not pyFlushAll. How do I use this to delete all instances of D_Page? Is there another way to do this in 7.3?
Instead of trying to use FlushDeclarativePage, we used a data transform and added this code (mentioned by vanaa earlier) to it: @(Pega-RULES:DeclarePages).pzDeleteAllInstancesOfDeclarativePage(tools, Param.PageName).