Need to delete pipelines or scheduled jobs via script post PCMCS snapshot import in DR instance
In our PCMCS application, we have an automation that performs a daily snapshot refresh from Production to our DR environment. This includes importing the application snapshot using an EPM Automate script.
The issue is that scheduled jobs (pipelines) from Production also get imported into the DR environment. These jobs start running and trigger email alerts to business users, which is not desirable in a non-production environment.
To prevent this, we’re looking for a way to either:
- Delete pipelines via script (EPM Automate or REST API),
- Cancel or delete scheduled jobs programmatically, or
- Stop email alerts
These pipeline jobs are scheduled by users to run on specific days of the month.