Skip to content

Instantly share code, notes, and snippets.

@flavioheleno
Created January 26, 2021 13:20
Show Gist options
  • Save flavioheleno/895df363c1f4557d9ac35d428023b687 to your computer and use it in GitHub Desktop.
Save flavioheleno/895df363c1f4557d9ac35d428023b687 to your computer and use it in GitHub Desktop.
Clear NodeJS and PHP/Composer dependencies folders
#!/bin/bash
set -eo pipefail
find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
find . -name "vendor" -type d -prune -exec rm -rf '{}' +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment