---
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 :Nodinite: 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 :Nodinite: [Core Services][] and agents from the :Nodinite: 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  

>[!TIP]
>By default, the CLI keeps the databases and configuration files, so that you can reinstall :Nodinite: v7 later. For a complete removal, use the delete options below.

## :fa-network-wired: 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.*  

## :fa-trash: Uninstall commands

Run `Nodinite.Installer.Cli.exe` from an elevated [PowerShell 7][]<sup>:fa-arrow-up-right-from-square:</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
```

>[!IMPORTANT]
>With `--delete-databases` or `--delete-settings`, `--confirm` is required and must match the loaded `Environment.Name` in `config.cli.json`. `--force` cannot bypass this confirmation.

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

>[!TIP]
>To remove the databases and settings too, add the delete options. `--delete-databases` drops **every** :Nodinite: database configured for the Environment in the Portal: the [Configuration Database][], the [Log Databases][], and the agent databases (such as the Monitoring Database of the [Azure Logic Apps][Logic Apps Agent] agent).

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

>[!IMPORTANT]
>Dropping a database is destructive: you lose all configuration and data of the [Repository Model][], logging, and monitoring. Make sure you have backups if you need to keep any data.

### Remove Settings Files

>[!TIP]
>You can remove the settings independently.

```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

---

## :fa-broom: After Uninstallation - Optional Cleanup {#fa-broom-after-uninstallation---optional-cleanup}

The CLI doesn't remove everything around :Nodinite:. 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 :Nodinite: 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 :Nodinite: services.
* **SQL Server Agent jobs**: remove :Nodinite:-related jobs that are no longer needed.
* **Backup jobs**: remove or update backup jobs, maintenance plans, and third-party backup configurations for the :Nodinite: databases ([Configuration Database][], [Log Databases][], [Agent Database][]).
* **Linked servers**: remove [Linked Servers][] configured for :Nodinite:, for example between the Configuration Database and the Log Databases.
* **Service Principal Names (SPNs)**: remove [SPNs][SPN] registered for :Nodinite: service accounts for Kerberos.
* **Orphaned database users**: if you deleted the databases, check other databases for orphaned :Nodinite: users.

### Windows Service Accounts and Permissions

Review the Windows service accounts and permissions configured for :Nodinite::

* **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 :Nodinite: service accounts.
* **IIS_IUSRS group**: remove the :Nodinite: service accounts from the local [IIS_IUSRS group][IISAuthIISIUSRS].
* **Local Administrators group**: remove the :Nodinite: 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 :Nodinite: 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 :Nodinite: 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 :Nodinite: 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 :Nodinite: 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 :Nodinite: was part of a load-balanced setup.
* **Monitoring exclusions**: remove monitoring exclusions or allowlist entries for the :Nodinite: endpoints.

### Email and Notification Cleanup

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

* **Shared mailboxes**: reclaim or repurpose shared mailboxes used for :Nodinite: 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 :Nodinite: 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 :Nodinite: [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.

>[!TIP]
>**Planning to reinstall?** If you uninstall for a clean reinstall or to [switch the authentication method][Migrate Authentication Method], keep the Entra ID app registrations, SQL logins, certificates, and service accounts to simplify the new installation.

## :fa-hand-point-right: Next Steps

* :fa-person-to-portal: :Nodinite: [Portal][NodinitePortal]<sup>:fa-arrow-up-right-from-square:</sup>  
* :fa-rocket: [Install Nodinite v7][InstallNodiniteV7]  

## :fa-link-horizontal: Related Topics

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

[Agent Database]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Agent%20Database.md
[Alarm Plugins]:{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Overview.md
[BizTalk Monitoring]:{ndr}/Logging%20and%20Monitoring/Microsoft%20BizTalk%20Server%20-%20Monitoring/Troubleshooting/Uninstall.md
[Configuration Database]:{ndr}/Core%20Services/Configuration%20Database/Overview.md
[Core Services]:{ndr}/Core%20Services/Overview.md
[Database Monitoring]:{ndr}/Logging%20and%20Monitoring/Database/Overview.md
[E-mail]:{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Features/Email.md
[Email]:{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Features/Email.md
[Environment]:{ndr}/Getting%20Started/Menu%20-%20Environment.md
[File Folder Monitoring]:{ndr}/Logging%20and%20Monitoring/File%20Folder/Troubleshooting/Uninstall.md
[gMSA]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/gMSA%20accounts.md
[Hardening]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/How%20to%20perform%20hardening%20on%20your%20Nodinite%20installation.md
[HTTP Webhook]:{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Features/HTTP%20Webhook.md
[IBM MQ Monitoring]:{ndr}/Logging%20and%20Monitoring/IBM%20MQ/Getting%20started/4.%20Uninstall.md
[IIS]:{ndr}/Logging%20and%20Monitoring/Windows%20Server/Features/IIS.md
[IISAuthIISIUSRS]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/IIS%20Authentication%20settings.md#fa-users-cog-iis_iusrs-group-membership
[InstallNodiniteV7]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7.md
[Linked Servers]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Linked%20Servers.md
[Log API]:{ndr}/Core%20Services/Log%20API/Overview.md
[Log API OAuth]:{ndr}/Core%20Services/Log%20API/Scenarios/Protect%20the%20Log%20API%20with%20OAuth%202.0%20and%20Entra%20ID.md
[Log Databases]:{ndr}/Core%20Services/Log%20Databases/Overview.md
[Logging Service]:{ndr}/Core%20Services/Logging%20Service/Overview.md
[Logic Apps Agent]:{ndr}/Logging%20and%20Monitoring/Azure%20Logic%20Apps/Overview.md
[Logon as a Service]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/Logon%20as%20a%20Service%20right.md
[MCP Endpoint]:{ndr}/Core%20Services/MCP%20Endpoint/Overview.md
[MCP Endpoint External Access]:{ndr}/AI/MCP%20Endpoint%20External%20Access.md
[Migrate Authentication Method]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Migrate%20Authentication%20Method.md
[Monitoring Service]:{ndr}/Core%20Services/Monitoring%20Service/Overview.md
[Network and Firewall Overview]:{ndr}/Install%20and%20Update/Getting%20started/2.%20Prerequisites.md#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]:{ndr}/Logging%20and%20Monitoring/RabbitMQ/Troubleshooting/Uninstall.md
[Register Azure AD Apps]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20-%20OpenID%20-%20EntraID.md
[Repository Model]:{ndr}/Repository%20Model/Overview.md
[Roles]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/What%20is%20a%20Role.md
[Secret Management]:{ndr}/Install%20and%20Update/Troubleshooting/Secret%20Managment.md
[SPN]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/SPN.md
[Step04 TLS]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/04%20-%20Servers.md#core-host-tls
[Step06 Allocated ports]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/06%20-%20Review%20and%20Download.md#allocated-ports
[Step07]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/07%20-%20Install%20the%20Generated%20Package.md
[Step07 Arguments]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/07%20-%20Install%20the%20Generated%20Package.md#passing-arguments-when-needed
[Step07 Proxy]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/07%20-%20Install%20the%20Generated%20Package.md#proxy-overrides
[Step07 ZIP]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/07%20-%20Install%20the%20Generated%20Package.md#zip-bundle-content
[UpdateNodiniteV7]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Updating%20Nodinite%20v7.md
[Web API]:{ndr}/Core%20Services/Web%20API/Overview.md
[Web Client]:{ndr}/Core%20Services/Web%20Client/Overview.md
[Web Services Monitoring]:{ndr}/Logging%20and%20Monitoring/Web%20Services/Troubleshooting/Uninstall.md
[Windows Server]:{ndr}/Logging%20and%20Monitoring/Windows%20Server/Features/Windows%20Server.md
[Windows Server Monitoring]:{ndr}/Logging%20and%20Monitoring/Windows%20Server/Overview.md