1 | echo ".tables" | python manage.py dbshell | tr " " "\n" | grep myapp | sed 's/^/DROP TABLE /g' | sed 's/$/;/g' | python manage.py dbshell
|
More like this
- grep and delete sqlite tables by kifkif 2 years, 2 months ago
- fast table flush without raw SQL by dsblank 2 years, 1 month ago
- SQLite database vacuum script by pbx 4 years, 9 months ago
- by ago
- by ago
Comments
Improved version here
#