Skip to content

Empty database entries, how can they occur and how to remove them? #4233

Answered by jackwilsdon
j-peeters asked this question in Q&A
Discussion options

You must be logged in to vote

Importing tracks "as-is" without any metadata could lead to having albums without names or artists. The easiest way to find these albums is by finding their tracks using field::^$, which matches empty fields.

For example:

$ beet ls -f '$path' album::^$

To delete all tracks without albums, you could just use the above query with beet rm. Alternatively you could remove them one-by-one with the paths output by the above command:

$ beet rm path:"<path here>"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@j-peeters
Comment options

Answer selected by sampsyo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants