Hello Hari Krishna,
Welcome to the MS Q&A platform.
We have a Sample pre- and post-deployment script available for ADF to delete the old pipelines that are no longer in the release.
We can use this as an Azure PowerShell task to stop triggers prior to deployment, start the triggers, and remove resources that are not available on the release.
I hope this helps.
Please let me know if you have any further questions.