Skip to content

Instantly share code, notes, and snippets.

@Phoenix124
Created September 27, 2021 14:54
Show Gist options
  • Save Phoenix124/9b73e24f8bad85fca4469946b0039117 to your computer and use it in GitHub Desktop.
Save Phoenix124/9b73e24f8bad85fca4469946b0039117 to your computer and use it in GitHub Desktop.
Remove old maven dependencies
find ~/.m2/repository/ -atime +30 -iname '*.pom' -print0 | while read -d '' -r pom; do echo rm -rf "$(dirname $pom)"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment