iBooks, iCloud, Metadata mess - how do I reset database and start over?
I have a mac mini, a macbook air, and an iPhone 7+. I've been trying to put pdf files into iBooks and have them sync across all my devices. I added a number of pdf files, but then decided to delete them. I deleted them on my mac mini, and the pdfs disappeared from all my other devices. That part worked as expected. But then when I try to re-add one of these deleted pdf files, iBooks shows that I have two copies of the file in the library. When I try to remove one of the copies the file disappears completely. Somehow it shows two listings for the same file. Deleting one just deletes both. I have many pdf files that I had earlier put into iBooks that are behaving like this. These file appear twice in the library and duplicate entries cannot be deleted without deleting the entry entirely. Even weirder, the duplicate entries have different metadata (i.e., title and author). One is correct and the other is garbage characters. If I add a pdf to iBooks that was never added before I don't get this weird behavior. I've deleting every book from my iBooks library from every device. All devices show a completely empty iBooks library. Then when I add one of these problematic pdf files the duplicates appear again. It's totally frustrating.
Is there anyway I can delete all the books from iBooks and reset the database so it somehow no longer "remembers" these previously added pdf files? I can delete the app from my iPhone, but it is not possible to remove it from MacOS.
I've even tried some online instructions to remove all iBooks related files from the Library folder of both my macs - com.apple.BKAgentService, preferences, etc. And deleted IBooks from my iPhone. I managed to get a fresh "welcome to iBooks screen" on startup after doing all this. I thought that should work. But as soon as I add one of the pdfs that was previously in the library the same duplicate with garbage metadata appears.
Suggestions anyone?
Thanks,
Philip
iBook, macOS Sierra (10.12.1)