Deleting book from database
Hi all,
I'm trying to write a plugin and could use a bit of help. Given a path for an ebook, I would like to delete that book from the database. I can delete the file from my computer using normal python methods but I can't seem to find a way to remove it from calibre.
Apologies if this is super obvious. I searched through the API docs and was only able to find functions to remove a book from a device.
Bonus question: Is there any way to automatically trigger a plug in to run whenever the metadata for a book is changed?
Thanks so much in advance!
|