Django 6 · Database and migrations

Delete all data

Remove all data from the database and re-run post-migrate setup.

python manage.py flush

Caution: Deletes every row in every table. Use it only on a development database.

Official Django 6 documentation

More database and migrations commands

All database and migrations commands · Django 6 cheatsheet

Was this page helpful?