docs/delete_squashed_migrations.rst
:synopsis: Deletes leftover migrations after squashing and converts squashed migration to a normal one.
Deletes leftover migrations after squashing and converts squashed migration to
a normal one by removing the replaces attribute. This automates the clean up
procedure outlined at the end of the Django migration squashing documentation__. Modifies your source tree! Use with care!
__ MigrationSquashingDocs_
With django-extensions installed you cleanup squashed migrations using the delete_squashed_migrations command::
$ ./manage.py delete_squashed_migrations myapp
$ ./manage.py --noinput delete_squashed_migrations myapp
$ ./manage.py delete_squashed_migrations myapp 0001_squashed
.. _MigrationSquashingDocs: https://docs.djangoproject.com/en/dev/topics/migrations/#migration-squashing