Probably the easiest way to do this is to recreate the entire database. On Ubuntu, it looks like this:
sudo su postgres psql drop database your_database_name; create database your_database_name with owner user_you_use_in_django; \q exit
What is it. You have a clean database. In order for it to be ready for work, you need to perform the migration using python manage.py migrate .
If you only work on your project, you can delete and recreate the migration if you want.
Igor Pomaranskiy
source share