In the document of CICD for Azure datafactory a Sample pre- and post-deployment script is given link : https://docs.microsoft.com/en-us/azure/data-factory/continuous-integration-deployment#script.
predeployment $true -deleteDeployment $false
I understand that in pre deployment (i.e when predeployment $true -deleteDeployment $false) it will disables all the triggers from datafactory and post deployment (predeployment $false -deleteDeployment $true) it will delete piplines, dataflow,datasets etc which are no longer present in the ARM templae.
My question is, what is use of parameter -deleteDeployment ? Since the delete resources part is inside the else part and inside this else we have -deleteDeployment.
Can you lep me in understanding the use of this parameter -deleteDeployment.