Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 09-24-2020, 06:39 AM   #1
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Leftover files after delete

What files are left after an eBook is deleted using the delete function on the Kobo?

I know Kindles can end up with a lot of files and directories left over. I'm hoping Kobo doesn't do something similar.
JSWolf is offline   Reply With Quote
Old 09-24-2020, 02:56 PM   #2
93terp
Fear The Turtle!
93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.
 
93terp's Avatar
 
Posts: 868
Karma: 4067244
Join Date: Sep 2009
Location: Margaritaville
Device: KV, Kobo Forma, Kobo A1LE, KO3, K3
Quote:
Originally Posted by JSWolf View Post
What files are left after an eBook is deleted using the delete function on the Kobo?

I know Kindles can end up with a lot of files and directories left over. I'm hoping Kobo doesn't do something similar.
So far I haven't found any leftover files or empty folders on my Kobo following an on-device delete. That drives my crazy on the Kindle!
93terp is offline   Reply With Quote
Advert
Old 09-24-2020, 05:23 PM   #3
compurandom
Wizard
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 1,012
Karma: 500000
Join Date: Jun 2015
Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color
Possibly the generated / cached cover might be left behind.
Calibre with the KoboUtilities plugin has a feature to clean up the covers directory, but I've never _needed_ to use it, and my library has a fairly high turnover. Probably ran it once or twice.
compurandom is offline   Reply With Quote
Old 09-24-2020, 08:30 PM   #4
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
@JSWolf: I thought you must have known the answer to this. You have stated that people should use calibre to delete books as it does the cleanup, so I assumed you must have know what was left behind.

@compurandom: The covers are cleaned up properly when you delete a book through the UI. The Kobo Utilities cleanup was written at a time when there was problem with this. And because I needed to prove what was actually happening.


But, nothing is left behind when you remove a purchased book. For sideloaded books it depends on the format. For anything that is opened using the RMSDK (epubs and PDF, don't know about other formats) there will be files in the "Digital Editions" directory. For everything else, if the last book or cover in a directory is removed, the empty directory is not removed.
davidfor is offline   Reply With Quote
Old 09-25-2020, 12:05 PM   #5
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
I've seen in \Digital Editions\Annotations\, sub-directories A - Z with annotation files of (by Calibre) removed books which were still left behind.

This is even more curious as I'm always manually remove all annotations in the books themselves before removing the book. Those annotations files still contained, well, "annotations".
DrChiper is offline   Reply With Quote
Advert
Old 09-25-2020, 09:32 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I don't have annotation files. I did the fix some time ago for the annotation bug where the location wasn't correct after reopening the eBook. My annotation directory is a 0 byte file.

However, I do have leftover XML files. That is one thing I eould really like Kobo Utilities to handle if it's possible.
JSWolf is offline   Reply With Quote
Old 09-25-2020, 11:46 PM   #7
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by DrChiper View Post
I've seen in \Digital Editions\Annotations\, sub-directories A - Z with annotation files of (by Calibre) removed books which were still left behind.

This is even more curious as I'm always manually remove all annotations in the books themselves before removing the book. Those annotations files still contained, well, "annotations".
When you delete a book from calibre, it does so in the same way as the device does (with the exception of cleaning up empty directories). So, it doesn't delete those files.

The files are created when the book is first opened on the device (though it might be different if you use ADE to put the book on the device). The annotations files are maintained when reading an epub. As you add and remove annotations they are changed in both the database and the file. The latter is done by the RMSDK and I doubt there is a way to turn it off. It is handled a little differently if you edit the annotations from outside a book. From memory, it updates the annotations in the database, but only updates the file when the books is opened and a merge is done.

Not removing these files does allow an epub to be deleted and then added again and the annotations not lost. But, I'll look at adding an option to the driver to clean them up. And sometime I have to write a cleanup function for the Kobo Utilities plugin to do this a well.
davidfor is offline   Reply With Quote
Old 09-26-2020, 04:54 AM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by davidfor View Post
When you delete a book from calibre, it does so in the same way as the device does (with the exception of cleaning up empty directories). So, it doesn't delete those files.

The files are created when the book is first opened on the device (though it might be different if you use ADE to put the book on the device). The annotations files are maintained when reading an epub. As you add and remove annotations they are changed in both the database and the file. The latter is done by the RMSDK and I doubt there is a way to turn it off. It is handled a little differently if you edit the annotations from outside a book. From memory, it updates the annotations in the database, but only updates the file when the books is opened and a merge is done.

Not removing these files does allow an epub to be deleted and then added again and the annotations not lost. But, I'll look at adding an option to the driver to clean them up. And sometime I have to write a cleanup function for the Kobo Utilities plugin to do this a well.
Would you also please add in to delete the excess XML files? Thanks.
JSWolf is offline   Reply With Quote
Old 09-26-2020, 07:41 AM   #9
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
Quote:
Originally Posted by davidfor View Post
Not removing these files does allow an epub to be deleted and then added again and the annotations not lost. But, I'll look at adding an option to the driver to clean them up. And sometime I have to write a cleanup function for the Kobo Utilities plugin to do this a well.
Yes, perhaps the following options could be made:
  • an "update" ebook on the device, meaning delete current selected ebook(s) on the device, immediately followed by an "add" for the same ebook(s) from calibre to the device without removing the annotations;
  • a "remove" on the device, in which the selected ebook(s) are completely removed from the device, including any existing annotation files.
This would give you all the freedom to add, update & delete ebooks on your device.

I use the delete/add combo a lot when correcting the formatting of ebooks, so the "update" option would be nice

But there is no pressure for this feature, there are certainly more urgent matters to attend to.

Last edited by DrChiper; 09-26-2020 at 07:47 AM.
DrChiper is offline   Reply With Quote
Old 09-26-2020, 09:43 PM   #10
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by DrChiper View Post
Yes, perhaps the following options could be made:
  • an "update" ebook on the device, meaning delete current selected ebook(s) on the device, immediately followed by an "add" for the same ebook(s) from calibre to the device without removing the annotations;
  • a "remove" on the device, in which the selected ebook(s) are completely removed from the device, including any existing annotation files.
This would give you all the freedom to add, update & delete ebooks on your device.

I use the delete/add combo a lot when correcting the formatting of ebooks, so the "update" option would be nice

But there is no pressure for this feature, there are certainly more urgent matters to attend to.
Resending a book without deleting it first is fairly safe. It is only a problem if you change the internal structure and the ToC. The ToC is extracted and stored in the database, so if it changes, the book has to be reimported. And I have some code to fix that, but, I have to finish it.

But, sometime, I'll add an option to remove the files in the Digital Editions directory when deleting the book.
davidfor is offline   Reply With Quote
Old 09-27-2020, 01:01 AM   #11
compurandom
Wizard
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 1,012
Karma: 500000
Join Date: Jun 2015
Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color
Quote:
Originally Posted by davidfor View Post
Resending a book without deleting it first is fairly safe. It is only a problem if you change the internal structure and the ToC. The ToC is extracted and stored in the database, so if it changes, the book has to be reimported. And I have some code to fix that, but, I have to finish it.
I edit TOCs in books often enough that the delete book / resend book cycle is annoying. But not often enough to uncheck the option in the plugin, assuming I understand what it does.
compurandom is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Paperwhite - Leftover folders after removing a book hfpop Amazon Kindle 17 06-30-2018 12:51 PM
Leftover files JSWolf Amazon Kindle 6 01-20-2015 02:54 PM
will calibre delete my other files if i used it to store the other files? stanmarsh Library Management 4 07-31-2012 07:00 AM
did i delete the kindle OS files? bookreader1 Kindle Developer's Corner 17 11-20-2011 09:15 PM
Delete files in PC not equal to delete in Sony reader 505 sheilalayoli Sony Reader 5 07-12-2009 03:13 PM


All times are GMT -4. The time now is 10:39 PM.


MobileRead.com is a privately owned, operated and funded community.