# I accidently deleted my Database

**URL:** <https://forums.plex.tv/t/i-accidently-deleted-my-database/894170>\
**Category:** Plex Media Server\
**Tags:** server-windows\
**Created:** [November 1, 2024, 7:11pm UTC](https://forums.plex.tv/t/i-accidently-deleted-my-database/894170 "2024-11-01T19:11:35Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlsohio76](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@jlsohio76](https://forums.plex.tv/u/jlsohio76)\
**Post date:** [November 1, 2024, 7:11pm UTC](https://forums.plex.tv/t/i-accidently-deleted-my-database/894170/1 "2024-11-01T19:11:35Z")

</div>

Server Version#:4.140.1  
Player Version#:  
I deleted my database by accident. I have multiple backups, but when I restore them, the database I’m looking for is not there? My friends database is there but not my libraires. Is there a way to get it back? Or do I have to start from scratch?

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [November 1, 2024, 7:15pm UTC](https://forums.plex.tv/t/i-accidently-deleted-my-database/894170/2 "2024-11-01T19:15:48Z")

</div>

> [@jlsohio76](#):
>
> I deleted my database by accident.

What exactly do you mean by that?  
Did you

1. delete the database _file_ (or even the whole [Plex data folder](https://support.plex.tv/articles/202915258-where-is-the-plex-media-server-data-directory-located/))
2. or did you delete one or several libraries in the Plex user interface?

If 1), you need to restore a backup of the [plex data folder](https://support.plex.tv/articles/202915258-where-is-the-plex-media-server-data-directory-located/). If you made one. Backups which were made while Plex server was still running have usually an unusable/damaged primary database file. After restoring the [Plex data folder](https://support.plex.tv/articles/202915258-where-is-the-plex-media-server-data-directory-located/), you need to additionally perform this procedure to get an intact database file: [https://support.plex.tv/articles/202485658-restore-a-database-backed-up-via-scheduled-tasks/](https://support.plex.tv/articles/202485658-restore-a-database-backed-up-via-scheduled-tasks/)

If 2), you only need to do this [https://support.plex.tv/articles/202485658-restore-a-database-backed-up-via-scheduled-tasks/](https://support.plex.tv/articles/202485658-restore-a-database-backed-up-via-scheduled-tasks/)

---

<div class="post-metadata">

**Author:** ![jlsohio76](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@jlsohio76](https://forums.plex.tv/u/jlsohio76)\
**Post date:** [November 1, 2024, 7:18pm UTC](https://forums.plex.tv/t/i-accidently-deleted-my-database/894170/3 "2024-11-01T19:18:00Z")

</div>

What I mean is the name of my database does not appear in the main menu on the left hand side.

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [November 1, 2024, 7:19pm UTC](https://forums.plex.tv/t/i-accidently-deleted-my-database/894170/4 "2024-11-01T19:19:10Z")

</div>

The items in the side bar are libraries. Not databases.  
When you say you deleted them by accident, _how_ did you delete them?

---

<div class="post-metadata">

**Author:** ![jlsohio76](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@jlsohio76](https://forums.plex.tv/u/jlsohio76)\
**Post date:** [November 1, 2024, 7:31pm UTC](https://forums.plex.tv/t/i-accidently-deleted-my-database/894170/5 "2024-11-01T19:31:40Z")

</div>

OK, my bad. I deleted the main library (that had music, movies & tv shows in it) I deleted it from the windows desktop app. I’m not sure where it was at, I think it was in red. I deleted it because they were listed twice.

---

<div class="post-metadata">

**Author:** ![jlsohio76](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@jlsohio76](https://forums.plex.tv/u/jlsohio76)\
**Post date:** [November 1, 2024, 7:38pm UTC](https://forums.plex.tv/t/i-accidently-deleted-my-database/894170/6 "2024-11-01T19:38:18Z")

</div>

When I open PlexDash, My server reads: ???  
In PlexAmp the source reads: ???

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [November 1, 2024, 7:50pm UTC](https://forums.plex.tv/t/i-accidently-deleted-my-database/894170/7 "2024-11-01T19:50:01Z")

</div>

If you actually deleted files from the [Plex data folder](https://support.plex.tv/articles/202915258-where-is-the-plex-media-server-data-directory-located/), and have no safety copy of that somewhere, then your data are lost

---

<div class="post-metadata">

**Author:** ![jlsohio76](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@jlsohio76](https://forums.plex.tv/u/jlsohio76)\
**Post date:** [November 1, 2024, 7:56pm UTC](https://forums.plex.tv/t/i-accidently-deleted-my-database/894170/8 "2024-11-01T19:56:09Z")

</div>

I have multiple copies of this file, but my library is missing after I swapped them into the local folder. I tried this on 2 different files.  
If I have to start over, uninstall in windows and create a new plex library?

I uninstalled PMS. I deleted my local file. I downloaded the software. Logged in. I don’t see where I can add a new library. What am I missing?  
Do I have to change something else?

OK, I think I fixed it. I had to delete my windows registry entry for Plex. I then copied my latest backup file back into local folder. Everything is now working. I did not lose any data.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [January 30, 2025, 7:56pm UTC](https://forums.plex.tv/t/i-accidently-deleted-my-database/894170/9 "2025-01-30T19:56:51Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
