Skip to content

Instantly share code, notes, and snippets.

@havvg
Created September 27, 2016 15:18
Show Gist options
  • Save havvg/20790fe565efc43e167c719aee1d545a to your computer and use it in GitHub Desktop.
Save havvg/20790fe565efc43e167c719aee1d545a to your computer and use it in GitHub Desktop.
Clean up composer vendors directory
#!/bin/bash
find . -type f -name composer.json -maxdepth 4 -exec dirname {} \; | \
xargs -I{} find {} -type d -name vendor -maxdepth 1 | \
xargs rm -Rf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment