How to remove data type instances in other environment through Pega Deployment manager

I want to delete datatype instances in other environments through PDM.I tried adding Delete SQL query in RunTask activity by creating a custom task and added the custom task in pipeline.Will the query delete the instance in the target datatable during run time in other environment(say dev,stg,etc.,) in which the application has pegadevops as built on.

Is there any other approach to add post import activity to execute delete query in other environment from PDM during deployment?

Hi @Pallavi Gurram / @nayam,

Greetings !! We found your contacts here Ask-expert-pega-deployment-manager.

@ThivyaGR got a question on deployment manager, could you please confirm whether we have any extension point to perform post deployment activities.

Thanks,

Vinay

I referred below article to create custom task in the pipeline.

Also exposed service where i added logic for deleting instances in the target environment and invoked the service in the RunTask activity(created under my customized task class) and now i’m able to achieve this.