Closed KC-218 closed 2 years ago
I want to ask if I want to clear sqlite all data, only one way to call delete table data in each table? like following code.
try db.run(users.delete()) try db.run(shops.delete()) try db.run(employees.delete()) try db.run(objects.delete()) try db.run(drinks.delete()) try db.run(food.delete()) ..... ..... .....
Delete the db.sqlite3 file directly in the Document folder of your app and you will get everything erased.
Deleting and recreating the database should do the job.
I want to ask if I want to clear sqlite all data, only one way to call delete table data in each table? like following code.