7

Whenever an ePub file is opened with Calibre's ebook viewer, a bookmark file is created inside that ePub. This file does not store user bookmarks, it is automatically used by the program to remember the last used location inside the book.
More precisely this bookmark file is called calibre_bookmarks.txt and is located in the META-INF folder, inside the said ePub book main directory.

I'd like to know if there is an easy way of getting rid of these bookmark files from inside Calibre, ideally from multiple ePubs at once (doing it manually for every single ebook wouldn't be very handy), effectively cleaning them and restoring their "newness".

2 Answers 2

4

There's a plugin called Modify ePub which could remove Calibre bookmarks. But I haven't tried it myself.

1
  • 1
    Thank you, it was exactly what I needed. Interestingly enough, I already had this plugin installed, but I had not noticed the option to delete Calibre bookmarks! :)
    – Sekhemty
    Dec 30, 2014 at 23:00
1

There is another way to do this on Linux.

First, open a terminal and cd into the folder with your ePubs.

Next, type the following command: find . -name "*.epub" -exec zip -d '{}' 'META-INF/calibre_bookmarks.txt' \;

Then, all of the calibre_bookmarks.txt files inside all the ePubs in the current dir (recursively) will be deleted.

1
  • Since editing a ZIP file changes the file's checksum, the entire mess can be avoided by setting all epub files read-only find . -name "*.epub" -exec chmod 444 '{}' \;.
    – wolfmanx
    Jan 21, 2022 at 15:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.