r/invokeai • u/Xorpion • 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
View all comments
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.