Skip to content

Instantly share code, notes, and snippets.

@froboy
Last active May 19, 2022 19:15
Show Gist options
  • Save froboy/df23f6bd6c3fd7a19d1622f7461936b5 to your computer and use it in GitHub Desktop.
Save froboy/df23f6bd6c3fd7a19d1622f7461936b5 to your computer and use it in GitHub Desktop.
Sometimes composer (in your Drupal 8 environment) gets grupmy... when that happens, it's time to go nucular.
######
# This script intentionally deletes a lot of things that could be important!!!!!
# Please be sure you have a backup before you go nucular!!!!!
#####
# Depending on where your web root is...
rm -rf vendor/ && rm -rf web/core && rm -rf web/modules/contrib/ && rm -rf composer.lock
# or
rm -rf vendor/ && rm -rf docroot/core && rm -rf docroot/modules/contrib/ && rm -rf composer.lock
@bsnodgrass
Copy link

Wow, pretty aggressive Avi!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment