在工程根目录下执行:

find . -type d -name build | xargs rm -fr