I'm deploying my data factory using ARM Templates. When I delete a pipeline, the old version is not deleted from the target environment. The same happens with renaming, my target environment then contains a pipeline with the old and AND a pipeline with the new name.
How do I delete old pipelines with ARM Template deployments?
Note: I only want to delete the orphaned pipelines inside the data factory, not wipe out the entire data factory.
In order to delete pipelines inside the data factory, you need to run the script published by Microsoft here.
Note that this requires the use of the new Azure "Az" powershell modules, if you are using Azure DevOps requires the use of the preview V4 powershell tasks.