How can I empty the database tables of my Django backend before applying the new migrations?

I am having the following build error when the migrations are performed.

This issue will be resolved if the data from the database tables can be flushed. On my local machine I am able to flush the table using the following command.

docker-compose exec web python3 flush

But I do not know how can I run this command on the CB Heroku server.
I am looking forward to if anyone can help me resolve this issue.

Priority: High


Just to confirm, there is no data in the DB that is needed and it’s fine to delete everything?

1 Like

Yes, it’s fine to delete everything.

The database has been reset. If you had created an admin user you’ll have to generate a new one.