---
title: How to Uninstall Nodinite v7 Safely and Completely
description: "Uninstall Nodinite v7 with the CLI: remove one agent, the Core Services, or the whole Environment with uninstall, uninstall-agent, or teardown-environment, keep or delete the databases and settings, and clean up Entra ID, SQL Server, IIS, and certificates."
---

# Uninstall Nodinite v7

Uninstall <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> v7 with the same CLI, `Nodinite.Installer.Cli.exe`, that [installed][InstallNodiniteV7] it. Whether you decommission an Environment, troubleshoot, [switch the authentication method][Migrate Authentication Method], or need a fresh start, this page shows which command to run and what to clean up afterwards.

What you'll achieve by following this guide:

* ✅ Remove the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Core Services][] and agents from the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> server with [IIS][]  
* ✅ Optionally keep your databases for a later reinstall  
* ✅ Use CLI commands for a predictable uninstall and teardown  
* ✅ Leave your environment ready for a fresh install or upgrade  

<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>By default, the CLI keeps the databases and configuration files, so that you can reinstall <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> v7 later. For a complete removal, use the delete options below.</p></div>
</aside>

## <i class="fal fa-network-wired" aria-hidden="true"></i> Understanding the Uninstall Options

<div class="mermaid">
flowchart TD
    Q{"What do you remove?"} -->|"One agent"| UA["fa:fa-plug uninstall-agent<br/>--agent"]
    Q -->|"Core Services only"| UN["fa:fa-microchip uninstall"]
    Q -->|"Agents, then Core Services"| TD["fa:fa-trash teardown-environment"]
    UN --> D{"Delete the data too?"}
    TD --> D
    D -->|"No"| KEEP["fa:fa-database Databases and settings kept<br/>for a reinstall"]
    D -->|"Yes"| DRY["fa:fa-flask Run with --dry-run first"]
    DRY --> DEL["fa:fa-triangle-exclamation --delete-databases, --delete-settings<br/>--confirm with the Environment name"]
    style Q fill:#2678BD,color:#fff
    style UA fill:#E47528,color:#fff
    style UN fill:#E47528,color:#fff
    style TD fill:#E47528,color:#fff
    style D fill:#2678BD,color:#fff
    style KEEP fill:#93d16d
    style DRY fill:#FFD525
    style DEL fill:#c33d34,color:#fff
</div>

*Diagram: choose the command (orange) by what you remove. Without delete options, the [Configuration Database][], the [Log Databases][], and the settings stay (green). Deleting them is destructive (red): run a dry run first (yellow) and confirm with the [Environment][] name.*  

## <i class="fal fa-trash" aria-hidden="true"></i> Uninstall commands

Run `Nodinite.Installer.Cli.exe` from an elevated [PowerShell 7][]<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup> prompt in the extracted ZIP bundle root, the same bundle layout as in [Step 7][Step07 ZIP]. `nodinitesrv01` is an example server folder name.

Start by inspecting the command help:

```powershell
.\Nodinite.Installer.Cli.exe teardown-environment --help
```

<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>With <code>--delete-databases</code> or <code>--delete-settings</code>, <code>--confirm</code> is required and must match the loaded <code>Environment.Name</code> in <code>config.cli.json</code>. <code>--force</code> cannot bypass this confirmation.</p></div>
</aside>

Uninstall the Core Services:

```powershell
.\Nodinite.Installer.Cli.exe uninstall --config .\nodinitesrv01\config.cli.json
```

`uninstall` removes the Core Services only; it does not remove agents.

### Remove Database Option

<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>To remove the databases and settings too, add the delete options. <code>--delete-databases</code> drops <strong>every</strong> <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> database configured for the Environment in the Portal: the <a href="https://docs.nodinite.com/core-services/configuration-database/overview/">Configuration Database</a>, the <a href="https://docs.nodinite.com/core-services/log-databases/overview/">Log Databases</a>, and the agent databases (such as the Monitoring Database of the <a href="https://docs.nodinite.com/logging-and-monitoring/azure-logic-apps/overview/">Azure Logic Apps</a> agent).</p></div>
</aside>

```powershell
.\Nodinite.Installer.Cli.exe uninstall --config .\nodinitesrv01\config.cli.json --delete-databases --delete-settings --confirm "NAMEOFENV" --force
```

<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>Dropping a database is destructive: you lose all configuration and data of the <a href="https://docs.nodinite.com/repository-model/overview/">Repository Model</a>, logging, and monitoring. Make sure you have backups if you need to keep any data.</p></div>
</aside>

### Remove Settings Files

<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>You can remove the settings independently.</p></div>
</aside>

```powershell
.\Nodinite.Installer.Cli.exe uninstall --config .\nodinitesrv01\config.cli.json --delete-settings --confirm "NAMEOFENV" --force
```

### Remove one agent

Use `uninstall-agent` to remove one agent:

```powershell
.\Nodinite.Installer.Cli.exe uninstall-agent --config .\nodinitesrv01\config.cli.json --agent AzureLogicApps --force
```

### Remove complete environment

Use `teardown-environment` to remove the agents first and then the [Core Services][]:

```powershell
.\Nodinite.Installer.Cli.exe teardown-environment --config .\nodinitesrv01\config.cli.json
```

Use destructive removal only when you intend to delete the databases and settings too:

```powershell
.\Nodinite.Installer.Cli.exe teardown-environment --config .\nodinitesrv01\config.cli.json --delete-databases --delete-settings --confirm "NAMEOFENV" --force
```

Use `--skip-deregistration` when you decommission the Portal side or cannot deregister the agents from the [Web API][] during teardown:

```powershell
.\Nodinite.Installer.Cli.exe teardown-environment --config .\nodinitesrv01\config.cli.json --skip-deregistration
```

Run a dry run before a destructive teardown:

```powershell
.\Nodinite.Installer.Cli.exe teardown-environment --config .\nodinitesrv01\config.cli.json --delete-databases --delete-settings --confirm "NAMEOFENV" --dry-run
```

Useful flags from `--help` for automation and restricted environments:

* `--non-interactive` for CI/CD-style execution
* `--database-connection-string` and `--agent-connection-string` to avoid prompts during database deletion ([passing arguments][Step07 Arguments])
* `--accept-legacy-database` to drop agent databases with pre-v7 names left from a v6 upgrade
* `--proxy-mode`, `--proxy-url`, and the related [proxy flags][Step07 Proxy] for controlled network egress

---

<h2 id="fa-broom-after-uninstallation---optional-cleanup"><i class="fal fa-broom" aria-hidden="true"></i> After Uninstallation - Optional Cleanup</h2>

The CLI doesn't remove everything around <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>. Review the following, especially when you permanently decommission an Environment, for security and compliance.

### Azure AD (Entra ID) Cleanup

If the Environment used OAuth 2.0 / OIDC with Microsoft Entra ID, remove the app registrations it no longer needs:

1. **Remove app registrations**:
   * In the Azure Portal, go to **Microsoft Entra ID** > **App registrations**.
   * Delete the applications created for this <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Environment ([Register Nodinite Applications in Entra ID][Register Azure AD Apps]):
     * `webApi` (or your custom name)
     * `webClient` (or your custom name)
     * `NodiniteInstallationClient` (or your custom name)
     * the [Log API][] app registration, if you [protected the Log API with OAuth 2.0][Log API OAuth]
     * the MCP app registration, if you set up [MCP Endpoint External Access][]
   * This removes their client secrets and certificates and prevents unauthorized access attempts.

2. **Revoke admin consent** if the app registrations stay:
   * When other Environments still use the app registrations, review and revoke the permissions granted to the uninstalled Environment.
   * Go to **Enterprise applications** > select each app > **Permissions** > **Revoke admin consent**.

### SQL Server Cleanup

If you kept the databases (no `--delete-databases`), you may want to clean up related SQL Server objects:

* **SQL logins**: remove SQL logins or Windows accounts created only for the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> services.
* **SQL Server Agent jobs**: remove <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>-related jobs that are no longer needed.
* **Backup jobs**: remove or update backup jobs, maintenance plans, and third-party backup configurations for the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> databases ([Configuration Database][], [Log Databases][], [Agent Database][]).
* **Linked servers**: remove [Linked Servers][] configured for <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>, for example between the Configuration Database and the Log Databases.
* **Service Principal Names (SPNs)**: remove [SPNs][SPN] registered for <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> service accounts for Kerberos.
* **Orphaned database users**: if you deleted the databases, check other databases for orphaned <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> users.

### Windows Service Accounts and Permissions

Review the Windows service accounts and permissions configured for <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>:

* **Service accounts**: remove or disable dedicated service accounts, such as the identities of the [IIS][IISAuthIISIUSRS] application pools of the Core Services; for [gMSA accounts][gMSA], ask your AD administrators.
* **Local security policies**: remove the [Logon as a Service][] right (`SeServiceLogonRight`) from the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> service accounts.
* **IIS_IUSRS group**: remove the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> service accounts from the local [IIS_IUSRS group][IISAuthIISIUSRS].
* **Local Administrators group**: remove the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> service accounts if they were added.
* **File system permissions**: review and remove custom NTFS permissions on the install folders (typically `C:\Program Files\Nodinite\`).

### IIS Application Pool Cleanup

On [Windows Server][], every Core Service is its own IIS web site with its own application pool and port. After the uninstall, check IIS Manager for leftovers:

* **Web sites and application pools**: remove any remaining <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> web sites and application pools ([Web Client][], [Web API][], [Log API][], [Logging Service][], [Monitoring Service][], and [MCP Endpoint][]).
* **Bindings**: remove HTTP and HTTPS bindings that other sites don't need.

### Certificate Cleanup

If you used HTTPS/TLS certificates only for this <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Environment ([Core host Configuration][Step04 TLS]):

* **IIS bindings**: remove the HTTPS bindings that served the Core Services.
* **Certificate store**: consider removing the certificate from `LocalMachine\WebHosting` or `LocalMachine\My` if it was issued only for this instance; also remove the [Secret Management][] certificate when the Environment is gone for good.
* **DNS records**: update or remove DNS entries for the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> host name when it is no longer in use.

### Firewall and Network Cleanup

* **Firewall rules**: remove the Windows Firewall and network firewall rules opened for the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> ports. Each Environment has its own ports; find them in the Portal under [Allocated ports][Step06 Allocated ports], and the rules in the [Network and Firewall Overview][].
* **Load balancer configuration**: update load balancers if <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> was part of a load-balanced setup.
* **Monitoring exclusions**: remove monitoring exclusions or allowlist entries for the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> endpoints.

### Email and Notification Cleanup

If you configured alarms with the [Alarm Plugins][]:

* **Shared mailboxes**: reclaim or repurpose shared mailboxes used for <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> alerts (e.g. `nodinite-alerts@company.com`) by the [E-mail Alarm Plugin][Email].
* **Distribution lists**: update or remove distribution lists used for alert notifications.
* **SMTP relay configuration**: remove SMTP relay allowlist entries for the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> servers if IP-based authentication was used.
* **OAuth2 client registrations**: if the [E-mail][] [Alarm Plugin][Alarm Plugins] used OAuth2 for SMTP (e.g. Microsoft 365), remove that client registration.
* **Webhook endpoints**: deactivate or remove endpoints used by the [HTTP Webhook Alarm Plugin][HTTP Webhook] (Teams, Slack, ServiceNow, SMS gateways, and so on).

### Monitoring and Logging Agent Cleanup

`teardown-environment` removes the agents in the package before the [Core Services][]; `uninstall` doesn't. Make sure that no agent is left behind:

* **Uninstall agents** with `uninstall-agent` or `teardown-environment`, using the `config.cli.json` of the server that runs them. Agent-specific notes:
  * [BizTalk Server Monitoring Agent][BizTalk Monitoring]
  * [Database Monitoring Agent][Database Monitoring]
  * [File Folder Monitoring Agent][File Folder Monitoring]
  * [IBM MQ Monitoring Agent][IBM MQ Monitoring]
  * [RabbitMQ Monitoring Agent][RabbitMQ Monitoring]
  * [Web Services Monitoring Agent][Web Services Monitoring]
  * [Windows Server Monitoring Agent][Windows Server Monitoring]
  * and any other installed agents
* **Agent configuration cleanup**: remove agent-specific configuration files, credentials, and connection strings from the agent servers.

### Documentation and Access Control

* **Remove user access**: revoke organization-specific access granted for <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Roles][].
* **Update documentation**: update internal documentation, runbooks, and architecture diagrams.
* **Archive configuration**: keep a copy of the configuration files, database backups, and settings for reference or compliance.

<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><strong>Planning to reinstall?</strong> If you uninstall for a clean reinstall or to <a href="https://docs.nodinite.com/install-and-update/getting-started/version-7/migrate-authentication-method/">switch the authentication method</a>, keep the Entra ID app registrations, SQL logins, certificates, and service accounts to simplify the new installation.</p></div>
</aside>

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

* <i class="fal fa-person-to-portal" aria-hidden="true"></i> <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Portal][NodinitePortal]<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>  
* <i class="fal fa-rocket" aria-hidden="true"></i> [Install Nodinite v7][InstallNodiniteV7]  

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

* <i class="fal fa-arrow-turn-up" aria-hidden="true"></i> [Update Nodinite v7][UpdateNodiniteV7]  
* <i class="fal fa-right-left" aria-hidden="true"></i> [Migrate Authentication Method][]  
* <i class="fal fa-terminal" aria-hidden="true"></i> [Step 7: Run the CLI Workflow][Step07]  
* <i class="fal fa-network-wired" aria-hidden="true"></i> [Network and Firewall Overview][]  
* <i class="fal fa-lock" aria-hidden="true"></i> [Add TLS to an existing v7 installation][Hardening] - Rerun the update with the new settings; no uninstall needed  

[Agent Database]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/agent-database/
[Alarm Plugins]:https://docs.nodinite.com/administration/settings/alarm-plugins/overview/
[BizTalk Monitoring]:https://docs.nodinite.com/logging-and-monitoring/microsoft-biztalk-server-monitoring/troubleshooting/uninstall/
[Configuration Database]:https://docs.nodinite.com/core-services/configuration-database/overview/
[Core Services]:https://docs.nodinite.com/core-services/overview/
[Database Monitoring]:https://docs.nodinite.com/logging-and-monitoring/database/overview/
[E-mail]:https://docs.nodinite.com/administration/settings/alarm-plugins/features/email/
[Email]:https://docs.nodinite.com/administration/settings/alarm-plugins/features/email/
[Environment]:https://docs.nodinite.com/getting-started/menu-environment/
[File Folder Monitoring]:https://docs.nodinite.com/logging-and-monitoring/file-folder/troubleshooting/uninstall/
[gMSA]:https://docs.nodinite.com/install-and-update/troubleshooting/windows/gmsa-accounts/
[Hardening]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/how-to-perform-hardening-on-your-nodinite-installation/
[HTTP Webhook]:https://docs.nodinite.com/administration/settings/alarm-plugins/features/http-webhook/
[IBM MQ Monitoring]:https://docs.nodinite.com/logging-and-monitoring/ibm-mq/getting-started/uninstall/
[IIS]:https://docs.nodinite.com/logging-and-monitoring/windows-server/features/iis/
[IISAuthIISIUSRS]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/iis-authentication-settings/#fa-users-cog-iis_iusrs-group-membership
[InstallNodiniteV7]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7/
[Linked Servers]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/linked-servers/
[Log API]:https://docs.nodinite.com/core-services/log-api/overview/
[Log API OAuth]:https://docs.nodinite.com/core-services/log-api/scenarios/protect-the-log-api-with-oauth-2-0-and-entra-id/
[Log Databases]:https://docs.nodinite.com/core-services/log-databases/overview/
[Logging Service]:https://docs.nodinite.com/core-services/logging-service/overview/
[Logic Apps Agent]:https://docs.nodinite.com/logging-and-monitoring/azure-logic-apps/overview/
[Logon as a Service]:https://docs.nodinite.com/install-and-update/troubleshooting/windows/logon-as-a-service-right/
[MCP Endpoint]:https://docs.nodinite.com/core-services/mcp-endpoint/overview/
[MCP Endpoint External Access]:https://docs.nodinite.com/ai/mcp-endpoint-external-access/
[Migrate Authentication Method]:https://docs.nodinite.com/install-and-update/getting-started/version-7/migrate-authentication-method/
[Monitoring Service]:https://docs.nodinite.com/core-services/monitoring-service/overview/
[Network and Firewall Overview]:https://docs.nodinite.com/install-and-update/getting-started/prerequisites/#network-and-firewall-overview
[NodinitePortal]:https://portal.nodinite.com/
[PowerShell 7]:https://learn.microsoft.com/en-us/powershell/scripting/install/install-powershell-on-windows
[RabbitMQ Monitoring]:https://docs.nodinite.com/logging-and-monitoring/rabbitmq/troubleshooting/uninstall/
[Register Azure AD Apps]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-openid-entraid/
[Repository Model]:https://docs.nodinite.com/repository-model/overview/
[Roles]:https://docs.nodinite.com/administration/access-management/roles/features/what-is-a-role/
[Secret Management]:https://docs.nodinite.com/install-and-update/troubleshooting/secret-managment/
[SPN]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/spn/
[Step04 TLS]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/04-servers/#core-host-tls
[Step06 Allocated ports]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/06-review-and-download/#allocated-ports
[Step07]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/07-install-the-generated-package/
[Step07 Arguments]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/07-install-the-generated-package/#passing-arguments-when-needed
[Step07 Proxy]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/07-install-the-generated-package/#proxy-overrides
[Step07 ZIP]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/07-install-the-generated-package/#zip-bundle-content
[UpdateNodiniteV7]:https://docs.nodinite.com/install-and-update/getting-started/version-7/updating-nodinite-v7/
[Web API]:https://docs.nodinite.com/core-services/web-api/overview/
[Web Client]:https://docs.nodinite.com/core-services/web-client/overview/
[Web Services Monitoring]:https://docs.nodinite.com/logging-and-monitoring/web-services/troubleshooting/uninstall/
[Windows Server]:https://docs.nodinite.com/logging-and-monitoring/windows-server/features/windows-server/
[Windows Server Monitoring]:https://docs.nodinite.com/logging-and-monitoring/windows-server/overview/