Step 9: Remove legacy v6 IIS applications and Windows services
After Step 8 has verified v7, remove the old Nodinite v6 installation: the v6 Core Services IIS applications and application pools, the v6 Logging and Monitoring Windows services, the old TLS web site, and the v6 agent Windows services. The v7 web sites stay untouched.
Warning
Don't run this step before Step 8. Remove v6 only after the agents package from Step 7 is installed and v7 is verified.
Prerequisites
- Step 8 completed – v7 functionality verified
- PowerShell 7 with administrator privileges
- The extracted agents bundle from Step 7
Recommended: Remove Legacy with CLI
First, save the v6 agent folders for Step 13: remove-legacy deletes the services, and with them the record of where each agent was installed.
Get-CimInstance Win32_Service -Filter "Name LIKE 'Nodinite%' AND Name <> 'NodiniteUpdateService'" |
ForEach-Object { Split-Path -Parent ($_.PathName.Trim('"')) } |
Sort-Object -Unique | Set-Content -Path "Nodinite-AgentFolders.txt"
Then, from the root of the extracted agents bundle, preview the removal, and run it:
.\Nodinite.Installer.Cli.exe remove-legacy --config .\nodinite01\config.cli.json --dry-run
.\Nodinite.Installer.Cli.exe remove-legacy --config .\nodinite01\config.cli.json
The command reads the environment name and the Legacy Nodinite 6 environment path from the configuration (Step 1) and runs three phases: it removes the v6 IIS applications, their application pools, and virtual directories; it stops and deletes the old v6 Windows services, including the Logging Service, the Monitoring Service, and the v6 agent services; and, only when you add --delete-files, it deletes the v6 files.

Example of remove-legacy removing the v6 Web Client, Web API, and Log API applications and pools, the v6 Logging and Monitoring Windows services, and skipping file deletion because --delete-files was not specified.
Important
remove-legacydoesn't remove the v6 Install and Update Tool (NodiniteUpdate), a custom v6 TLS web site that you created yourself, or the IBM DataPower and Dynamics CRM agents, which stay on the MSI-based installer and aren't managed by the CLI. RemoveNodiniteUpdatewith Programs and Features in Windows, and the TLS web site as described below.
Manual Fallback: Remove via IIS Manager
Use this only when you can't run remove-legacy.
1. Remove Old v6 Web Applications

Example of old Nodinite v6 web applications to remove in IIS Manager.
- Open IIS Manager on the Nodinite application server and expand Sites.
- Find the site hosting the v6 applications, usually Default Web Site.
- Remove
/Nodinite/ENV/WebClient,/Nodinite/ENV/WebAPI,/Nodinite/ENV/LogAPI, and/NodiniteUpdate/UpdateClient.
2. Remove Old Application Pools

Example of v6-era IIS application pools to remove after their web applications are deleted.
Remove the v6-era pools, for example Nodinite - %ENVIRONMENTNAME% - Web API, only when they have 0 applications. Never remove a pool that serves a v7 web site.
Remove the Custom v6 TLS Website
In v6, a dedicated IIS web site often terminated TLS. In v7, the CLI binds the certificate to each Core Service web site (Step 10: Configure TLS).
Important
Before you remove the custom web site, note its host name and the certificate subject; you enter both in Step 10.
- In IIS Manager, identify the custom v6 Nodinite TLS web site.
- Remove any web applications under it, then remove the site.
- Open Bindings on Default Web Site and other sites, and remove bindings that use the Nodinite host name or the old certificate.
Manual Fallback: Remove Old Agent Windows Services
Use this only when you can't run remove-legacy, or when v6 agent services remain afterwards in services.msc.
Generate Removal Script
The script lists the remaining Nodinite* Windows services, writes a removal script, and saves each service's folder to Nodinite-AgentFolders.txt for Step 13.
try {
$services = Get-Service | Where-Object { $_.Name -like "Nodinite*" -and $_.Name -ne "NodiniteUpdateService" }
} catch {
Write-Warning "Some services could not be queried. Continuing with available services."
$services = @()
}
$outputScript = "Remove-Nodinite-Services.ps1"
Set-Content -Path $outputScript -Value "# Auto-generated script to stop and remove Nodinite Windows services`n"
foreach ($service in $services) {
Add-Content -Path $outputScript -Value "Stop-Service -Name '$($service.Name)' -Force"
Add-Content -Path $outputScript -Value "sc.exe delete '$($service.Name)'`n"
}
$folderPaths = foreach ($service in $services) {
$wmiService = Get-CimInstance Win32_Service -Filter "Name='$($service.Name)'"
if ($wmiService -and $wmiService.PathName) {
Split-Path -Parent ($wmiService.PathName.Trim('"'))
}
}
$folderPaths | Sort-Object -Unique | Set-Content -Path "Nodinite-AgentFolders.txt"
Write-Host "Generated: $outputScript and Nodinite-AgentFolders.txt"
Review and Execute
- Open
Remove-Nodinite-Services.ps1andNodinite-AgentFolders.txt, and remove the entries for:- environments you are not migrating
- the IBM DataPower and Dynamics CRM agents, which stay on the MSI-based installer
- Open PowerShell 7 as administrator and run
./Remove-Nodinite-Services.ps1. - Verify the removal in
services.msc.
Completion Checklist
-
remove-legacycompleted, or the v6 applications and pools removed manually -
NodiniteUpdateremoved with Programs and Features - Custom v6 TLS web site and old host name bindings removed; host name and certificate subject noted
- Old v6 agent Windows services removed by
remove-legacy, or with the manual fallback (IBM DataPower and Dynamics CRM kept) -
Nodinite-AgentFolders.txtsaved for Step 13
Troubleshooting
Step 10 Fails with Binding Conflict
TLS configuration fails because a host name is still bound in IIS. Check the bindings on all IIS sites and remove duplicate host name bindings before you retry Step 10.
Cannot Remove an Application Pool
IIS reports that the pool still has applications. Remove the remaining applications first, then restart IIS Manager and retry.