-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathclean.cmd
More file actions
33 lines (27 loc) · 964 Bytes
/
clean.cmd
File metadata and controls
33 lines (27 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@echo off
title Clean
set /p DELETE_UV_CACHE="Do you want to clear global uv cache? (y/N) "
if /i "%DELETE_UV_CACHE%"=="y" (
"tools\astral\uv.exe" cache clean >nul 2>&1
)
set /p DELETE_HF_CACHE="Do you want to remove Hugging Face cache? (y/N) "
if /i "%DELETE_HF_CACHE%"=="y" (
rmdir /s /q "%USERPROFILE%\.cache\huggingface" >nul 2>&1
)
set /p DELETE_TRITON_CACHE="Do you want to delete Triton cache? (y/N) "
if /i "%DELETE_TRITON_CACHE%"=="y" (
rmdir /s /q "%USERPROFILE%\.triton" >nul 2>&1
)
set /p DELETE_PROMPTS_DB="Do you want to drop prompts history DB? (y/N) "
if /i "%DELETE_PROMPTS_DB%"=="y" (
del /q "%USERPROFILE%\.zpix\prompts_history.sqlite" >nul 2>&1
)
echo Cleaning now local cache and temp files...
rmdir /s /q ".ruff_cache" >nul 2>&1
rmdir /s /q ".venv" >nul 2>&1
rmdir /s /q "build" >nul 2>&1
rmdir /s /q "source\py\__pycache__" >nul 2>&1
rmdir /s /q "temp" >nul 2>&1
rmdir /s /q "vcpkg_installed" >nul 2>&1
echo Done.
pause