Spaces:
Running
Running
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`.") |