用记事本打开,复制以下内容,修改 把.txt 拓展名改为 .bat,双击运行即可

@echo off
rem create by xlh(xlh@foxmail.com)
rem crazy coder

rem -- D:\devtools\apache-maven-3.6.3\repository
set REPOSITORY_PATH=D:\devtools\apache-maven-3.6.3\repository
rem -- ...
for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%\*lastUpdated*"') do (
del /s /q %%i
)
rem
pause