Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rdbende opened this issue Jan 6, 2024 · 3 comments
Open

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

rdbende opened this issue Jan 6, 2024 · 3 comments

Comments

@rdbende
Copy link
Collaborator

rdbende commented Jan 6, 2024

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
Copy link

tudza commented Mar 14, 2024

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
Copy link
Collaborator Author

rdbende commented Mar 14, 2024

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

@tudza
Copy link

tudza commented Mar 14, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants