from django.db import connection with connection.cursor() as cursor: cursor.execute('TRUNCATE TABLE table_name CASCADE')