Skip to content

Instantly share code, notes, and snippets.

@jdbit
Last active August 27, 2021 17:09
Show Gist options
  • Save jdbit/81b9440309c67f7f6d399a718f405aa2 to your computer and use it in GitHub Desktop.
Save jdbit/81b9440309c67f7f6d399a718f405aa2 to your computer and use it in GitHub Desktop.
Delete all Django migrations in the project
find . -path "*/migrations/*.py" -not -name "__init__.py" -delete -not -path "*/env/*" -delete && find . -path "*/migrations/*.pyc" -delete -not -path "*/env/* -delete"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment