How classic298/prune-open-webui works
This legacy standalone Open WebUI maintenance tool offers interactive and automation-friendly CLI modes. Users configure retention and orphan-cleanup options, inspect a dry-run preview (optionally exporting it to CSV), then explicitly execute destructive cleanup. The documented cleanup spans users, chats and channels, workspace records, uploads and storage, vector data, audio cache, and database optimization. Source excerpts show the entry-point dispatch, configuration models, vector cleaners, and portions of operation handling; several detailed subsystem links are documented capabilities rather than inspected implementations.
Main entry points: prune_cli_interactive.py Interactive mode · standalone_prune.py Automation mode · prune_operations.py Database cleanup · prune.py CLI router
Components 15
CLI entry and modes
- CLI router
prune.py - Interactive mode
prune_cli_interactive.py - Automation mode
standalone_prune.py
Configuration and preview
- Prune settings
prune_models.py - Preview analysis
prune_cli_interactive.py - CSV audit export
prune_export.py
Pruning operations
- Database cleanup
prune_operations.py - Vector cleanup
prune_core.py - Orphaned file cleanup
prune_operations.py - Storage backends
- Audio cache cleanup
prune_operations.py - Database optimization
prune_operations.py
Open WebUI integration
- Import compatibility
prune_imports.py
Other components
- Operator
- Open WebUI models and services
Connections 20
- Operator → CLI router: starts
README.md - CLI router → Interactive mode: dispatches
prune.py - CLI router → Automation mode: dispatches
prune.py - Interactive mode → Prune settings: configures
prune_cli_interactive.py - Automation mode → Prune settings: configures
standalone_prune.py - Interactive mode → Preview analysis: analyzes
prune_cli_interactive.py - Automation mode → Preview analysis: previews
standalone_prune.py - Interactive mode → CSV audit export: exports preview
prune_cli_interactive.py - Interactive mode → Database cleanup: uses
prune_cli_interactive.py - Automation mode → Database cleanup: uses
standalone_prune.py - Interactive mode → Vector cleanup: uses
prune_cli_interactive.py - Automation mode → Vector cleanup: uses
standalone_prune.py - Database cleanup → Orphaned file cleanup: cleans files
prune_operations.py - Database cleanup → Vector cleanup: deletes vectors
prune_operations.py - Orphaned file cleanup → Storage backends: removes objects
README.md - Interactive mode → Audio cache cleanup: cleans cache
README.md - Interactive mode → Database optimization: can optimize
README.md - Interactive mode → Import compatibility: imports
prune_cli_interactive.py - Automation mode → Import compatibility: imports
standalone_prune.py - Import compatibility → Open WebUI models and services: loads integrations
prune_imports.py