Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 11-11-2011, 05:48 PM   #1
BerlinerKindl
Junior Member
BerlinerKindl began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2011
Device: SONY PRS-650
calibredb remove ...

Hi,

is there a way to delete alot of book at the same time from Calibre via the "calibredb remove" command?

I will delete all books with tags:"x" or all book with series:"y".

Something like this:

Code:
calibredb list -s series:"xxx" | calibredb remove
Thanks
BerlinerKindl is offline   Reply With Quote
Old 11-11-2011, 09:36 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,987
Karma: 5036765
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibredb remove -h
Usage: calibredb remove ids

Remove the books identified by ids from the database. ids should be a comma separated list of id numbers (you can get id numbers by using the list command). For example, 23,34,57-85
kovidgoyal is online now   Reply With Quote
 
Enthusiast
Old 11-20-2011, 06:03 AM   #3
BerlinerKindl
Junior Member
BerlinerKindl began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2011
Device: SONY PRS-650
Thanks but after an

Code:
calibredb remove 1223-1237
I get this error:

Code:
Traceback (most recent call last):
  File "site.py", line 58, in main
  File "site-packages/calibre/library/cli.py", line 1192, in main
  File "site-packages/calibre/library/cli.py", line 361, in command_remove
ValueError: int() base must be >= 2 and <= 36
BerlinerKindl is offline   Reply With Quote
Old 11-20-2011, 06:08 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,987
Karma: 5036765
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Typo, fixed in next release.
kovidgoyal is online now   Reply With Quote
Old 11-20-2011, 07:27 AM   #5
BerlinerKindl
Junior Member
BerlinerKindl began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2011
Device: SONY PRS-650
Thanks, waiting for next release.
BerlinerKindl is offline   Reply With Quote
Old 11-25-2011, 11:14 AM   #6
BerlinerKindl
Junior Member
BerlinerKindl began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2011
Device: SONY PRS-650
Works better but the last book would be not remove from library.

Code:
calibredb remove 12-15
This removed the books 12, 13 and 14 but NOT 15.

Thanks
BerlinerKindl is offline   Reply With Quote
Old 11-25-2011, 09:24 PM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,987
Karma: 5036765
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That's the way lists indices work in python. Use 12-16
kovidgoyal is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
calibredb list iomari Calibre 9 10-12-2011 11:30 AM
calibredb list no subseries_index reup Library Management 5 10-11-2011 10:32 AM
calibredb iomari Calibre 6 10-10-2011 08:35 AM
calibredb strange behaviour webwizard Library Management 9 04-17-2011 10:17 AM
RFE: Remove remove tags in bulk edit magphil Calibre 0 08-11-2009 10:37 AM


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


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