# Remove unused OrientDB files

**URL:** <https://community.sonatype.com/t/remove-unused-orientdb-files/14541>\
**Category:** Sonatype Nexus Repository\
**Created:** [March 5, 2025, 2:22pm UTC](https://community.sonatype.com/t/remove-unused-orientdb-files/14541 "2025-03-05T14:22:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fdcastel](https://avatars.discourse-cdn.com/v4/letter/f/6de8d8/32.png) [@fdcastel](https://community.sonatype.com/u/fdcastel)\
**Post date:** [March 5, 2025, 2:22pm UTC](https://community.sonatype.com/t/remove-unused-orientdb-files/14541/1 "2025-03-05T14:22:16Z")

</div>

I successfully completed a migration from OrientDB to the H2 database by following the instructions provided [here](https://help.sonatype.com/en/migrating-to-a-new-database.html#migrating-from-orientdb-to-h2-162010_body).

Notably, step 4 states:

> Copy the produced `nexus.mv.db` file to your `$data-dir/db` directory.

However, I found it unusual that **there is no mention of removing the old OrientDB files.**

Currently, my `$data-dir/db` directory contains the following:

```auto
drwxr-xr-x 2 root root 4096 Feb 3 2017 OSystem
drwxr-xr-x 2 root root 4096 Aug 12 2019 accesslog
drwxr-xr-x 2 root root 4096 Mar 3 15:56 analytics
drwxr-xr-x 2 root root 4096 Jun 20 2019 audit
drwxr-xr-x 2 root root 4096 Mar 3 15:56 component
drwxr-xr-x 2 root root 4096 Mar 3 15:56 config
-rw-r--r-- 1 root root 2 Mar 3 15:30 frozen.marker
-rw-r--r-- 1 root root 93 Aug 8 2024 model.properties
-rw-r--r-- 1 root root 19726336 Mar 4 01:45 nexus.mv.db
drwxr-xr-x 2 root root 4096 Mar 3 15:56 security

```

Am I correct in assuming that only the `nexus.mv.db` file is necessary? And everything else is no longer in use?

**Which of these files and directories can be safely removed?**

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [March 5, 2025, 2:50pm UTC](https://community.sonatype.com/t/remove-unused-orientdb-files/14541/2 "2025-03-05T14:50:25Z")

</div>

You should be able to archive everything except the `nexus.mv.db`

---

<div class="post-metadata">

**Author:** ![fdcastel](https://avatars.discourse-cdn.com/v4/letter/f/6de8d8/32.png) [@fdcastel](https://community.sonatype.com/u/fdcastel)\
**Post date:** [March 6, 2025, 7:09pm UTC](https://community.sonatype.com/t/remove-unused-orientdb-files/14541/3 "2025-03-06T19:09:43Z")

</div>

Thank you, @mpiggott! Much appreciated.

P.S.: If possible, please consider updating the documentation to include this valuable information.
