Skip to content

Instantly share code, notes, and snippets.

@abdulwahidgul24085
Last active December 5, 2022 17:57
Show Gist options
  • Save abdulwahidgul24085/795e5538a24f796d3e285584b3e66cb5 to your computer and use it in GitHub Desktop.
Save abdulwahidgul24085/795e5538a24f796d3e285584b3e66cb5 to your computer and use it in GitHub Desktop.
Delete all Migrations in Django project
find . -path "*/migrations/*.py" -not -path "./env/*" -not -name "__init__.py" -delete
@abdulwahidgul24085
Copy link
Author

To not delete migrations in the env python packages. Crazy effect be careful.

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