Answers.Body: <p>You can:</p>
  <ol>
  <li><p>Close the Calibre application.</p>
  </li>
  <li><p>Go into your Calibre library directory.</p>
  </li>
  <li><p>Rename the file <code>metadata.db</code> to something else, such as <code>metadata.db.old</code>.</p>
  </li>
  <li><p>Start Calibre again.</p>
  </li>
  </ol>
  <p>Renaming or deleting the file containing your Calibre library will cause Calibre to re-create an empty database (a new file <code>metadata.db</code>) at the next start.</p>
  <p>If your e-book files are still all present in folders below your Calibre library directory, you can now also click on the dropdown arrow next to the button with your library's name in Calibre, and then choose &quot;Library maintenance → Restore database&quot;. This will re-import the e-books from the database directory, and all metadata about them that you might have entered before. (This metadata is stored not just in the database but also in <code>.opf</code> files in the folders of each e-book within the Calibre database folder.)</p>
  <p>In fact, when &quot;Restore database&quot; is appropriate, you may also do <em>only</em> that step. Removing the database file first is not needed, as that step completely overwrites its content.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-07-28T23:59:48.603Z
Answers.Text: Thanks very much, I appreciate the help and detailed response.
Answers.UserDisplayName: ChipAhoy
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-07-27T22:00:58.323Z
Answers.LastActivityDate: 2021-07-27T22:00:58.323Z
Answers.UserDisplayName: tanius
Body: <p>I don't know what to do to get my Calibre library back.</p>
  
  <p>I have tried restoring my Calibre library from backups, and either get a message that no valid library is present when I try to switch libraries in the Calibre app, or, it seems to import my backup library, then shows zero books.</p>
  
  <p>I have attempted this restoring while Calibre is closed, per earlier instructions. I end up with multiple Calibre directories that I didn't create. </p>
  
  <p>I don't know what exactly I did to create this mess, but the more I try to fix it, the worse it seems to get. I have the ebook files on my computer, it's just trying to get them into a Calibre library that I am having problems with. Have spent more time than I want to admit trying to fix this.</p>
  
  <p>I just want to restore or create a working library in Calibre. Is there not any way just to start from scratch?</p>
  
Tags: <calibre>
Title: How do I start over and create a new Calibre library?
UserDisplayName: ChipAhoy
ThreadText: # How do I start over and create a new Calibre library?
  
  (Asked by: username_0 on 2018-11-16)
  
  I don't know what to do to get my Calibre library back.
  
  I have tried restoring my Calibre library from backups, and either get a message that no valid library is present when I try to switch libraries in the Calibre app, or, it seems to import my backup library, then shows zero books.
  
  I have attempted this restoring while Calibre is closed, per earlier instructions. I end up with multiple Calibre directories that I didn't create.
  
  I don't know what exactly I did to create this mess, but the more I try to fix it, the worse it seems to get. I have the ebook files on my computer, it's just trying to get them into a Calibre library that I am having problems with. Have spent more time than I want to admit trying to fix this.
  
  I just want to restore or create a working library in Calibre. Is there not any way just to start from scratch?
  
  **Tags:** calibre
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-07-27. Score: 3
  
  You can:
  
  1. Close the Calibre application.
  2. Go into your Calibre library directory.
  3. Rename the file `metadata.db` to something else, such as `metadata.db.old`.
  4. Start Calibre again.
  
  Renaming or deleting the file containing your Calibre library will cause Calibre to re-create an empty database (a new file `metadata.db`) at the next start.
  
  If your e-book files are still all present in folders below your Calibre library directory, you can now also click on the dropdown arrow next to the button with your library's name in Calibre, and then choose "Library maintenance → Restore database". This will re-import the e-books from the database directory, and all metadata about them that you might have entered before. (This metadata is stored not just in the database but also in `.opf` files in the folders of each e-book within the Calibre database folder.)
  
  In fact, when "Restore database" is appropriate, you may also do *only* that step. Removing the database file first is not needed, as that step completely overwrites its content.
  
  > **Comments:**
  > **username_0**: Thanks very much, I appreciate the help and detailed response.  
  
  ---
  
  