[Answer]-Django manage.py sqclear all apps

1👍

Django extensions has reset_db command which is handy.

Sample run:

(junction)➜  junction git:(master) ✗ ./manage.py reset_db
Monkey patching...

You have requested a database reset.
This will IRREVERSIBLY DESTROY
ALL data in the database "/Users/kracekumar/code/junction/db.sqlite3".
Are you sure you want to do this?

Type 'yes' to continue, or 'no' to cancel: yes
Reset successful.

0👍

You can use sqlflush for printing out database flushing command or directly use flush for removing all data from database.

Leave a comment