@echo off
rem 这里写你的仓库路径
set REPOSITORY_PATH= '本地仓库路径'
rem 正在搜索...
for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%*lastUpdated*"') do (
del /s /q %%i
)
rem 搜索完毕
pause
mac本删除办法
# 这里写你的仓库路径 REPOSITORY_PATH=~/Documents/tools/apache-maven-3.0.3/repository echo 正在搜索... find $REPOSITORY_PATH -name "*lastUpdated*" | xargs rm -fr echo 搜索完