How to remove files that are unmanage/untracked in Beets

Hey all. Beets is great!

So, through a multiple of issues and missteps, I have a number of files in my Beets tracked music collection that are not in the Beets db. I would like to delete these files. Ultimately I want to compare the files on disk with the files tracked in Beets, and delete any files on disk that are not tracked in Beets. I could write a script to do this, but I am hoping there’s either a way to do this with Beets, or someone has already come up with a method that I can use.

Thanks!

Hello!! You might be interested in this plugin, which is available on the master branch:
http://docs.beets.io/en/latest/plugins/unimported.html

Thanks! That does look like it would be very helpful.