Files
ollama_proxy_server/reset.bat
Saifeddine ALOUI b5c2dfdade chore(rebrand): rename project from "Ollama Proxy Fortress" to "lollms hub"
Update all project references, documentation, and assets to reflect the new
branding. Changes include:
- Rename application references in README, CONTRIBUTING, DEVELOPMENT
- Update default database filename from ollama_proxy.db to lollms_hub.db
- Update .env.example header and bootstrap configuration
- Adjust .gitignore for new database name
- No functional code changes, purely cosmetic rebranding
2026-03-22 01:12:20 +01:00

112 lines
3.1 KiB
Batchfile

@echo off
setlocal enabledelayedexpansion
:: ==================================================================
::
:: LoLLMs Hub Fortress - FULL RESET SCRIPT
:: For: Windows
::
:: ==================================================================
cls
:: --- Display the Irreversible Action Warning ---
echo #####################################################################
echo # #
echo # W A R N I N G #
echo # #
echo #####################################################################
echo.
echo This script will completely reset the application.
echo The following actions will be performed:
echo.
echo - The Python virtual environment ('venv') will be deleted.
echo - The configuration file ('.env') will be deleted.
echo - The setup state file ('.setup_state') will be deleted.
echo - The database ('lollms_hub.db') will be deleted.
echo - All generated Python cache files ('__pycache__') will be removed.
echo.
echo THIS OPERATION IS IRREVERSIBLE.
echo All your users, API keys, and settings will be permanently lost.
echo.
:: --- Require User Confirmation ---
set "CONFIRMATION="
set /p CONFIRMATION="To confirm you want to proceed, please type 'reset now': "
if /i not "!CONFIRMATION!"=="reset now" (
echo.
echo Confirmation not received. Reset has been cancelled.
pause
exit /b 1
)
echo.
echo Confirmation received. Proceeding with the reset...
echo.
:: --- Perform Deletion Actions ---
echo 1. Deleting Python virtual environment ('venv')...
if exist "venv" (
rmdir /s /q "venv"
echo - Done.
) else (
echo - Not found.
)
echo 2. Deleting configuration file ('.env')...
if exist ".env" (
del ".env"
echo - Done.
) else (
echo - Not found.
)
echo 3. Deleting setup state file ('.setup_state')...
if exist ".setup_state" (
del ".setup_state"
echo - Done.
) else (
echo - Not found.
)
echo 4. Deleting database file ('lollms_hub.db')...
if exist "lollms_hub.db" (
del "lollms_hub.db"
del "lollms_hub.db-journal" 2>nul
echo - Done.
) else (
echo - Not found.
)
echo 5. Deleting Alembic versions (optional, for clean migration history)...
if exist "alembic\versions" (
for /d %%i in ("alembic\versions\*") do (
if /i not "%%~nxi"==".gitkeep" (
del "%%i" 2>nul
)
)
echo - Done.
) else (
echo - Not found.
)
echo 6. Cleaning up Python cache files...
for /d /r . %%d in (__pycache__) do (
if exist "%%d" (
rmdir /s /q "%%d"
)
)
echo - Done.
echo.
echo #####################################################################
echo # #
echo # RESET COMPLETE #
echo # #
echo #####################################################################
echo.
echo You can now run 'run_windows.bat' to start a fresh installation.
echo.
pause