---
title: "Step 13: Final Cleanup – v6 to v7 Migration"
description: "Step 13 of the Nodinite v6 to v7 migration: delete the old v6 Monitoring Agent folders and the Nodinite Update folder, and keep the v7 environment folder and the MSI-based agents."
---

# <i class="fal fa-forward-step" aria-hidden="true"></i> Step 13: Final Cleanup

Delete the old v6 [Monitoring Agent][Monitoring] folders and files. In v6, every agent had its own MSI installer, and the admin could choose any installation path, so the folders may be on different drives or under different roots, not only under `C:\Program Files\Nodinite\`.

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p><strong>Migrated to new hardware?</strong> The v6 agent folders are on the <strong>old</strong> server: do these steps there. On the new server, delete only the v6 <code>Nodinite Core Services</code> folder you copied for the migration, or let <code>remove-legacy --delete-files</code> delete it. See <a href="https://docs.nodinite.com/install-and-update/getting-started/version-6/migrating-v6-to-v7-on-new-hardware/#fa-broom-after-the-migration-clean-up-the-old-server">Migrating v6 to v7 on New Hardware</a>.</p></div>
</aside>

## Prerequisites

* [ ] [Step 12 completed – All configurations updated][Step12]
* [ ] All v7 services running and tested
* [ ] Backup of the old files, if you need one
* [ ] `Nodinite-AgentFolders.txt` from [Step 9][Step09]

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p>Before <code>remove-legacy</code>, <a href="https://docs.nodinite.com/install-and-update/getting-started/version-6/updating-from-v6-to-v7/09-remove-old-windows-services/">Step 9 (Remove legacy v6 IIS applications and Windows services)</a> saved each v6 service's folder to <code>Nodinite-AgentFolders.txt</code>; use that list. Without it, compare with the agents you exported in <a href="https://docs.nodinite.com/install-and-update/getting-started/version-6/updating-from-v6-to-v7/05-export-monitoring-agents/">Step 5</a>.</p></div>
</aside>

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p>If several environments share this server, remove only the folders of the environment you just migrated.</p></div>
</aside>

## Folders to Keep and Delete

![Nodinite program folder with v6 agent folders and the v7 environment folder][1]  
*Example of a <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> program folder with the old v6 Monitoring Agent folders next to the v7 environment folder.*  

### <i class="fal fa-check" aria-hidden="true"></i> Keep These Folders

* **`<EnvironmentName>`** (e.g., `DEV`, `PROD`) – contains the v7 installation
* `Monitoring Agent - DataPower` and `Monitoring Agent - Dynamics CRM` – the [IBM DataPower][DataPower] and [Dynamics CRM][Dynamics] agents stay on the MSI-based installer

### <i class="fal fa-trash" aria-hidden="true"></i> Delete These Folders

In v7, the Portal package installs the agents as [IIS][] web sites, so these v6 Windows service folders are no longer used:

* `Agent - Azure` and `Agent - Azure Logic Apps`
* `Monitoring Agent - Database`
* `Monitoring Agent - File Folder`
* `Monitoring Agent - IBM MQ`
* `Monitoring Agent - Log File Parser`
* `Monitoring Agent - Message Queueing`
* `Monitoring Agent - Microsoft BizTalk Server`
* `Monitoring Agent - Mule`
* `Monitoring Agent - Non Events`
* `Monitoring Agent - RabbitMQ`
* `Monitoring Agent - Web Services`
* `Monitoring Agent - Windows Server`
* `Nodinite Update` – the old update service folder; delete it only when every environment on this server runs v7

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>Delete only folders that exist; not every environment has every agent.</p></div>
</aside>

## Steps

1. Verify that all v7 services run correctly, and test logging, monitoring, and alerting.
2. Open `Nodinite-AgentFolders.txt` and remove the paths of environments you are not cleaning up, and of the IBM DataPower and Dynamics CRM agents.
3. Delete each listed folder.
4. Delete the `Nodinite Update` folder if every environment on this server runs v7.
5. **Do NOT delete** the `<EnvironmentName>` folder with your v7 installation.
6. Empty the Recycle Bin when you are satisfied.

### Optional: Delete Using PowerShell

```powershell
# Review first — open the file and verify paths before running
Get-Content .\Nodinite-AgentFolders.txt

# Delete each folder listed in the file
Get-Content .\Nodinite-AgentFolders.txt | ForEach-Object {
    if (Test-Path $_) {
        Write-Host "Removing: $_"
        Remove-Item -Path $_ -Recurse -Force
    } else {
        Write-Host "Not found (already removed or never existed): $_"
    }
}
```

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p>Always review <code>Nodinite-AgentFolders.txt</code> before you run the script.</p></div>
</aside>

## Completion Checklist

* [ ] Old v6 agent folders removed; IBM DataPower and Dynamics CRM folders kept
* [ ] `Nodinite Update` folder removed (when all environments run v7)
* [ ] Environment folder (e.g., `DEV`) preserved
* [ ] v7 still works after the cleanup

## Troubleshooting

### Accidentally Deleted Environment Folder

You removed the environment folder (e.g., `DEV`) instead of an agent folder. Do the following:

* Stop removing files
* Restore from backup if available
* Download the package again and rerun the CLI deployment to reinstall v7; see [Update Nodinite v7][Updating Nodinite v7]
* Read the [Support page][SupportPage]

### v7 Not Working After Cleanup

Services fail after you removed old folders. Check the following:

* You didn't remove the environment folder
* The IIS application pools are running
* Event Viewer for errors; restore from backup if needed

### Cannot Find Old Monitoring Agent Folders

Listed folders don't exist in your installation. This is normal: each environment has different agents, so skip the missing ones.

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* [<i class="fal fa-forward-step" aria-hidden="true"></i> Step 14: Post Migration Tasks][Step14]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* [Updating from v6 to v7 – Migration Guide][Main]  
* [Installation Overview][Install Overview]  
* [Installation Troubleshooting][Install Troubleshooting]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/IMUpdate/Update/v6_v7/FoldersToDelete.png

[DataPower]:https://docs.nodinite.com/logging-and-monitoring/ibm-datapower-gateway/overview/
[Dynamics]:https://docs.nodinite.com/logging-and-monitoring/microsoft-dynamics-365/overview/
[IIS]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/overview/
[Install Overview]:https://docs.nodinite.com/install-and-update/overview/
[Install Troubleshooting]:https://docs.nodinite.com/install-and-update/troubleshooting/overview/
[Main]:https://docs.nodinite.com/install-and-update/getting-started/version-6/updating-from-v6-to-v7/
[Monitoring]:https://docs.nodinite.com/administration/monitor-management/monitor-agents/features/what-is-a-monitor-agent/
[New Hardware Cleanup]:https://docs.nodinite.com/install-and-update/getting-started/version-6/migrating-v6-to-v7-on-new-hardware/#fa-broom-after-the-migration-clean-up-the-old-server
[Step05]:https://docs.nodinite.com/install-and-update/getting-started/version-6/updating-from-v6-to-v7/05-export-monitoring-agents/
[Step09]:https://docs.nodinite.com/install-and-update/getting-started/version-6/updating-from-v6-to-v7/09-remove-old-windows-services/
[Step12]:https://docs.nodinite.com/install-and-update/getting-started/version-6/updating-from-v6-to-v7/12-update-agent-configurations/
[Step14]:https://docs.nodinite.com/install-and-update/getting-started/version-6/updating-from-v6-to-v7/14-post-migration-tasks/
[SupportPage]:https://docs.nodinite.com/getting-started/support/
[Updating Nodinite v7]:https://docs.nodinite.com/install-and-update/getting-started/version-7/updating-nodinite-v7/