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

:Nodinite: [Log Databases][] are part of the :Nodinite: [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.

## :fa-terminal: 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. |

>[!IMPORTANT]
>**Back up your data!** Export critical logs and audit trails before uninstalling, and run destructive commands with `--dry-run` first. Archive Log Databases on other SQL Server instances, created by the [Logging Service][] over time, may not be covered by the CLI; check every instance listed under **Administration › Settings › [Log Databases][Log Databases Admin]** and remove leftovers yourself.

>[!TIP]
>**For routine maintenance:** :Nodinite: does **not** automatically remove old [Log Databases][]. To free disk space, use the [Automating removal of old Log Databases][Automate Removal] guide instead of a full uninstallation.

## :fa-broom: 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 :Nodinite:. Also remove the folders configured in [LogLocations][] when they are no longer used.

## :fa-circle-check: 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.  

## :fa-user-md: 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].

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

* :fa-trash-can: [Uninstall Nodinite v7][Uninstall]  
* :fa-file-alt: [Nodinite Release notes][Release Notes]<sup>:fa-arrow-up-right-from-square:</sup>  

## :fa-link-horizontal: Related Topics

* :fa-box-full: [Core Services Package][Core Services]  
* :fa-rocket: [Install Log Databases][Install]  
* :fa-database: [Log Databases][]  
* :fa-database: [Uninstall Configuration Database][Uninstall ConfigDB]  
* :fa-clipboard-check: [Prerequisites][]  
* :fa-clipboard-question: [Troubleshooting][]  
* :fa-arrow-turn-up: [Update Log Databases][Update]  

[Automate Removal]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Automating%20removal%20of%20old%20Log%20Databases.md
[Core Services]:{ndr}/Core%20Services/Overview.md
[Install]:{ndr}/Core%20Services/Log%20Databases/Getting%20started/2.%20Install.md
[Linked Servers]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Linked%20Servers.md
[Log Databases]:{ndr}/Core%20Services/Log%20Databases/Overview.md
[Log Databases Admin]:{ndr}/Administration/5.%20Settings/2.%20Log%20Databases/Overview.md
[LogDatabaseName]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogDatabaseName.md
[Logging Service]:{ndr}/Core%20Services/Logging%20Service/Overview.md
[LogLocations]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogLocations.md
[LogServiceUsers]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogServiceUsers.md
[Prerequisites]:{ndr}/Core%20Services/Log%20Databases/Getting%20started/1.%20Prerequisites.md
[Release Notes]:https://portal.nodinite.com/marketplace/36
[Remove Complete Environment]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Uninstall%20Nodinite%20v7.md#remove-complete-environment
[Remove Database Option]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Uninstall%20Nodinite%20v7.md#remove-database-option
[SQL Server Cleanup]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Uninstall%20Nodinite%20v7.md#sql-server-cleanup
[SupportPage]:{ndr}/Getting%20Started/Support.md
[Troubleshooting]:{ndr}/Core%20Services/Log%20Databases/Troubleshooting/Overview.md
[Uninstall]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Uninstall%20Nodinite%20v7.md
[Uninstall Commands]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Uninstall%20Nodinite%20v7.md#fa-trash-uninstall-commands
[Uninstall ConfigDB]:{ndr}/Core%20Services/Configuration%20Database/Troubleshooting/Uninstall.md
[Update]:{ndr}/Core%20Services/Log%20Databases/Updating.md