find . -type d -name "target" -maxdepth 2 | xargs rm -rf