#!/usr/bin/env python import sqlite3 conn = sqlite3.connect("/var/lib/lliurex-sync-server/userlogged") c = conn.cursor() c.execute('delete from users') conn.commit() c.close()