Skip to content

Instantly share code, notes, and snippets.

@havvg
Created September 27, 2016 15:18
Embed
What would you like to do?
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