---
title: "Uninstalling CoraDB"
description: "Remove CoraDB from Linux (.sh, tar.gz or RPM) and Windows: stop the service, delete the databases and remove the software."
url: "https://www.coradb.ai/manual/uninstall.html"
markdown_url: "https://www.coradb.ai/manual/markdown/uninstall.md"
product: "CoraDB"
version: "1.0"
keywords: "uninstall coradb, remove coradb linux, remove coradb windows, rpm -e coradb, coradb deletedb"
---

# Uninstalling CoraDB

## Linux: .sh or tar.gz installation

1. Stop CoraDB and delete the databases you no longer need, for example `testdb1` and `testdb2`:

   ```bash
   coradb service stop
   coradb deletedb testdb1
   coradb deletedb testdb2
   ```

   [deletedb](https://www.coradb.ai/manual/admin/admin_utils.html#deletedb) removes the volumes and logs of a database and its entry in `databases.txt`. Back up databases you want to keep first.

2. Remove the installation directory `$CORADB`:

   ```bash
   echo $CORADB
   rm -rf /home/coradb/CoraDB
   ```

3. Remove the startup script `/etc/init.d/coradb` if you installed it, and the lines that load `~/.coradb.sh` from your shell profile.

## Linux: RPM installation

1. Stop CoraDB and delete the databases as above.
2. Remove the package:

   ```bash
   rpm -q coradb
   rpm -e coradb
   ```

   Configuration files you changed are kept with the extension `.rpmsave`, for example `/opt/coradb/conf/coradb.conf.rpmsave`.
3. Remove `/etc/init.d/coradb` if it is still there. The `coradb` Linux user and group are not removed by `rpm -e`; remove them with `userdel` and `groupdel` if needed.

## Windows

Stop CoraDB with the Service Tray, then uninstall *CoraDB* in *Control Panel > Programs and Features*. The uninstaller asks whether to delete the existing databases and configuration files. For a zip installation, remove the service with `ctrlService.exe -u`, delete the installation directory and remove the `CORADB` and `CORADB_DATABASES` environment variables.
