Delete all files in Downloads that aren't hooked?

I don’t know about you, but the beauty of Hook is that it’s let me avoid filing everything.

Sometimes, I order my unfiled files in Downloads by recently accessed, and just delete any files I haven’t used in months.

However, I’d like to improve this by excluding any files that are in the Hook Database.

How can I begin to figure out how to do that?

p.s. I love the way we’re charged for updates but not for subscription access. I rave about this whenever I can when people moan about subscription software.

Maybe I could start by exporting the database?

edit:
Do this by going into preferences > general > export

Then use:

cat "Hookmark export file.hooklinks" | awk -F 'hook_bookmark://' '{print $2}' | awk -F '\\?bookmark' '{print $1}'

The next stage will be to use this to exclude files being deleted, and just delete the oldest files in a given directory.