Is there an existing issue for this?
Contact Details
No response
What should this feature add?
I'd like a command-line script, located in scripts, which removes orphaned model files from the INVOKEAI_ROOT directory.
Orphaned models are ones that appear in the INVOKEAI_ROOT/models directory, but which are not referenced in the database models table. When run without command-line arguments, the script should list all the orphaned model directories it finds and ask for confirmation to delete them. Other arguments are:
--root Specify an INVOKEAI_ROOT directory. The $INVOKEAI_ROOT environment variable also controls this.
--delete Delete orphan model files without asking
Alternatives
No response
Additional Content
No response
Is there an existing issue for this?
Contact Details
No response
What should this feature add?
I'd like a command-line script, located in
scripts, which removes orphaned model files from the INVOKEAI_ROOT directory.Orphaned models are ones that appear in the INVOKEAI_ROOT/models directory, but which are not referenced in the database
modelstable. When run without command-line arguments, the script should list all the orphaned model directories it finds and ask for confirmation to delete them. Other arguments are:Alternatives
No response
Additional Content
No response