File size: 249 Bytes
8434471
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import os
import sqlite3

db_path = "./database/mock_qna.sqlite"

con = sqlite3.connect(db_path)
cur = con.cursor()
sql_string = "DELETE FROM answer_tbl"
res = cur.execute(sql_string)
con.commit()
con.close()

print("done cleaning up `answer_tbl`.")