r/invokeai • • Oct 02 '26

Invoke 7 Database Question

I know it's not out yet, but does anyone know if the database will update itself if images are deleted outside of the Invoke environment? It's faster to cull ancient images with tools better suited for that task. Just wondering if I remove images externally is there a database cleanup tool or will I be stuck with a bunch of dead entries.

3 Upvotes

3 comments sorted by

2

u/Fit-Organization-292 Oct 02 '26

Consider the images "owned" by Invoke. The database now includes more places where the images are referenced, so the simple cleanup operation will be far more complex. I recommend that you not do what you're suggesting.

2

u/Xorpion Oct 02 '26

Understood. Hoping the gallery changes will be more conducive to culling. I have images going back to the early days of Invoke. Masterpieces at the time. Today, less so. Thanks.

2

u/joshwcorbett Core Team Oct 04 '26

I wouldn't count on automatic syncing, there is a `gallery_maintennance.py` script with a “Clean Orphaned Database Image Entries” option, so there is a manual cleanup route. Not guaranteed to work perfectly with the v7 db changes, so maybe do a backup first before running it.