geigi / cozy

🎧 Listen to audio books 📚 on Linux
https://cozy.sh
GNU General Public License v3.0
1.08k stars 83 forks source link

Add button to delete all books (ie. reset database) #842

Open rdbende opened 6 months ago

rdbende commented 6 months ago

Feature description

There are a number of issues on this repo where the solution was to simply delete the database in order to solve a problem. Obviously the database shouldn't be corrupted in the first place, but it's useful nevertheless to be able to delete all books with one click, so that one don't have to reinstall Cozy, or delete the database files manually.

tudza commented 3 months ago

How do I delete the database when using the Flatpak install? Using Remove from Library isn't even working anymore so I'm getting "Can't find this" "Can't find that" messages every time I launch.

rdbende commented 3 months ago

You can delete Cozy's database file manually. It's located at ~/.var/app/com.github.geigi.cozy/data/cozy/cozy.db

tudza commented 3 months ago

I managed to get rid of the one book that wouldn't go away by creating the folder it used to be in and creating an mp3 file with the same name. Then I was given the option to remove it and it went away.

Still, that path given here does the job.

Looks like the "proper" way to remove a book is to use Remove from within Cozy rather than just delete the folder/file. However, a re-scan of the library ought to handle this as well I would think.