Last active
August 27, 2021 17:09
-
-
Save jdbit/81b9440309c67f7f6d399a718f405aa2 to your computer and use it in GitHub Desktop.
Delete all Django migrations in the project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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