# acest script sterge informatia din baza de date pentru a avea un nou inceput . import sqlite3 # Define the database path DATABASE = './data/database.db' def reset_database(): # Connect to the database with sqlite3.connect(DATABASE) as conn: cursor = conn.cursor() # Drop the existing logs table if it exists cursor.execute('DELETE FROM logs;') conn.commit() print("Database has been reset ") if __name__ == '__main__': reset_database()