---
title: How to Uninstall a Log Database – Nodinite v7 Guide
description: "Uninstall Nodinite Log Databases with the v7 CLI: plain uninstall keeps them, --delete-databases drops the Core Services databases, and how to clean up SQL Server and old archive Log Databases."
---

# Uninstall Log Databases

<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Log Databases][] are part of the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Core Services][] and are removed with them by the v7 CLI. Follow [Uninstall Nodinite v7][Uninstall] for the complete procedure; this page lists what is specific to Log Databases.

## <i class="fal fa-terminal" aria-hidden="true"></i> What the CLI Does with Log Databases

| CLI command | Log Databases |
| --- | --- |
| [`uninstall`][Uninstall Commands] | ✅ Kept. Only the Core Services are removed. |
| `uninstall` with `--delete-databases` (see [Remove Database Option][]) | ❌ Core Services databases are dropped; you lose all logging data. |
| [`teardown-environment`][Remove Complete Environment] | Kept, unless you add `--delete-databases`, which requires `--confirm` with the environment name. |

<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><strong>Back up your data!</strong> Export critical logs and audit trails before uninstalling, and run destructive commands with <code>--dry-run</code> first. Archive Log Databases on other SQL Server instances, created by the <a href="https://docs.nodinite.com/core-services/logging-service/overview/">Logging Service</a> over time, may not be covered by the CLI; check every instance listed under <strong>Administration › Settings › <a href="https://docs.nodinite.com/administration/settings/log-databases/overview/">Log Databases</a></strong> and remove leftovers yourself.</p></div>
</aside>

<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>For routine maintenance:</strong> <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> does <strong>not</strong> automatically remove old <a href="https://docs.nodinite.com/core-services/log-databases/overview/">Log Databases</a>. To free disk space, use the <a href="https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/automating-removal-of-old-log-databases/">Automating removal of old Log Databases</a> guide instead of a full uninstallation.</p></div>
</aside>

## <i class="fal fa-broom" aria-hidden="true"></i> Clean Up SQL Server

The CLI doesn't remove SQL Server objects outside the databases. Review the [SQL Server Cleanup][] checklist: logins for the accounts in [LogServiceUsers][], backup jobs, [Linked Servers][] to remote Log Database instances, and SPNs created for <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>. Also remove the folders configured in [LogLocations][] when they are no longer used.

## <i class="fal fa-circle-check" aria-hidden="true"></i> Verify the Removal

* With `--delete-databases`: no database named by the [LogDatabaseName][] pattern (for example `Nodinite_Prod_Log_…`) remains on any SQL Server instance.  
* Without it: the Log Databases still exist, and no Core Service writes to them.  

## <i class="fal fa-user-md" aria-hidden="true"></i> Contact Our Support

If you have questions or encounter issues uninstalling the [Log Databases][], contact our expert team, read more on the [Support page][SupportPage].

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

* <i class="fal fa-trash-can" aria-hidden="true"></i> [Uninstall Nodinite v7][Uninstall]  
* <i class="fal fa-file-alt" aria-hidden="true"></i> [Nodinite Release notes][Release Notes]<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>  

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

* <i class="fal fa-box-full" aria-hidden="true"></i> [Core Services Package][Core Services]  
* <i class="fal fa-rocket" aria-hidden="true"></i> [Install Log Databases][Install]  
* <i class="fal fa-database" aria-hidden="true"></i> [Log Databases][]  
* <i class="fal fa-database" aria-hidden="true"></i> [Uninstall Configuration Database][Uninstall ConfigDB]  
* <i class="fal fa-clipboard-check" aria-hidden="true"></i> [Prerequisites][]  
* <i class="fal fa-clipboard-question" aria-hidden="true"></i> [Troubleshooting][]  
* <i class="fal fa-arrow-turn-up" aria-hidden="true"></i> [Update Log Databases][Update]  

[Automate Removal]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/automating-removal-of-old-log-databases/
[Core Services]:https://docs.nodinite.com/core-services/overview/
[Install]:https://docs.nodinite.com/core-services/log-databases/getting-started/install/
[Linked Servers]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/linked-servers/
[Log Databases]:https://docs.nodinite.com/core-services/log-databases/overview/
[Log Databases Admin]:https://docs.nodinite.com/administration/settings/log-databases/overview/
[LogDatabaseName]:https://docs.nodinite.com/administration/settings/system-parameters/logdatabasename/
[Logging Service]:https://docs.nodinite.com/core-services/logging-service/overview/
[LogLocations]:https://docs.nodinite.com/administration/settings/system-parameters/loglocations/
[LogServiceUsers]:https://docs.nodinite.com/administration/settings/system-parameters/logserviceusers/
[Prerequisites]:https://docs.nodinite.com/core-services/log-databases/getting-started/prerequisites/
[Release Notes]:https://portal.nodinite.com/marketplace/36
[Remove Complete Environment]:https://docs.nodinite.com/install-and-update/getting-started/version-7/uninstall-nodinite-v7/#remove-complete-environment
[Remove Database Option]:https://docs.nodinite.com/install-and-update/getting-started/version-7/uninstall-nodinite-v7/#remove-database-option
[SQL Server Cleanup]:https://docs.nodinite.com/install-and-update/getting-started/version-7/uninstall-nodinite-v7/#sql-server-cleanup
[SupportPage]:https://docs.nodinite.com/getting-started/support/
[Troubleshooting]:https://docs.nodinite.com/core-services/log-databases/troubleshooting/overview/
[Uninstall]:https://docs.nodinite.com/install-and-update/getting-started/version-7/uninstall-nodinite-v7/
[Uninstall Commands]:https://docs.nodinite.com/install-and-update/getting-started/version-7/uninstall-nodinite-v7/#fa-trash-uninstall-commands
[Uninstall ConfigDB]:https://docs.nodinite.com/core-services/configuration-database/troubleshooting/uninstall/
[Update]:https://docs.nodinite.com/core-services/log-databases/updating/