Delete all node_modules
npx rimraf --glob **/node_modules
Delete build folder of Dart/Flutter projects
find . -name "pubspec.yaml" -execdir sh -c 'if [ -d "build" ]; then echo "Deleting build folder in $(pwd)"; rm -rf "build"; fi' \; 2>/dev/null
find . -name "pubspec.yaml" -execdir sh -c 'if [ -d ".dart_tool" ]; then echo "Deleting .dart_tool folder in $(pwd)"; rm -rf ".dart_tool"; fi' \; 2>/dev/null
Delete pub cache
rm -rf ~/.pub-cache
If you use Docker
sudo docker system prune -a
If you use Python
find . -type d -name ".venv" -execdir sh -c '
echo "Deleting .venv folder in $(pwd)"
rm -rf ".venv"
' \; 2>/dev/null