anchor.diff:  %_appcmd% delete apppool %_prServiceName% >nul
   %_appcmd% delete app "Default Web Site/%_wcfServiceName%" >nul
   %_appcmd% delete apppool %_wcfServiceName% >nul
  -if EXIST %_currentRepo% rmdir /s /q %_currentRepo%
  +if EXIST %_currentRepo% if DEFINED _useExistingRepo (echo User provided repo is not deleted: %_currentRepo%) else (rmdir /s /q %_currentRepo%)
   if EXIST %_wcfTestDir% if /I '%_masterRepo%'=='%_currentRepo%' rmdir /s /q %_wcfTestDir%
   echo Clean up done.
  -if /I '%2'=='/c' goto :Done
  +if DEFINED _cleanup goto :Done
  +
  +:: Determine if we need to clone a new WCF repo
  +if DEFINED _useExistingRepo (
  +    if NOT EXIST %_currentRepo% echo ERROR: The provided WCF repo was not found: %_currentRepo% & goto :Failure
  +    echo Use provided WCF repo: %_currentRepo%
  +    goto :SkipCloneRepo
  +)
   
   :: Make sure git.exe is available
   where git.exe /Q
  
positive.code: echo.
  echo Setup WCF test services hosted on IIS for the testing of WCF on .NET Core
  echo.
  echo Usage: %~n0 Id [/c]
  echo    Id: The Id of a WCF repo and its associated IIS hosted services to be created.
  echo        The Id will be appended to the name of all assets to be created.
  echo        %_idMaster%: if Id is '%_idMaster%', additional IIS hosted services such as PRService
  echo        will be created to serve as central services for other WCF repos. 
  echo    /c: If specified, this will clean up any existing setup of Id instead of creating new.
  echo.
  echo Examples:
  echo    %~n0 42
  echo    :Create a WCF repo named 'wcf42' and IIS hosted services such as 'WcfService42'
  echo    %~n0 42 /c
  echo    :Clean up WCF repo 'wcf42' and all associated IIS hosted services such as 'WcfService42'
  goto :Done
  
  :Run
  
negative.code: 
  :: TODO: Grant all existing app pools named WCFService# 'Read' access to %_wcfTestDir%. This is not needed for now
  
  :: Grant app pool %_certService% "Read" access to %_wcfTestDir% and its subdirectories
  echo Grant app pool %_certService% "Read" access to %_wcfTestDir% and its subdirectories
  call :Run icacls %_wcfTestDir% /grant:r "IIS APPPOOL\%_certService%":(OI)(CI)R /Q
  if ERRORLEVEL 1 goto :Failure
  
  :SkipCertInstall
  
  :: Unlock the configuration of sslFlags
  echo Unlock the IIS config section to allow sslFlags to be overriden
  