Can we use Flush all instances for a node level data page?

This was asked in an interview-In production say you are using node level data page and its used for populating states dropdown based on country ,now u added a new state for india but its not fetched.How will u do this?in production?

@TanyaS58 Hi Tanya,

Yes, you can flush all instances of data page

  1. Call OOTB activity FlushDeclarativeStepPage with flushall option selected.

  2. Use function @(Pega-RULES:DeclarePages).pzDeleteAllInstancesOfDeclarativePage(tools, “D_YourDataPageName”)

@TanyaS58

Another option is to perform “Clear data Page” in the Load Management tab of the Data Page.

Thanks,

@sangr2 Thank you.