#!/usr/bin/env python3
import sqlite3
c = sqlite3.connect('/opt/safesightd/data/app.db')
c.execute('DELETE FROM device_assignments')
c.execute('DELETE FROM recognition_units')
c.execute('DELETE FROM device_config_state')
c.commit()
c.close()
print('已清理旧分配数据，请重新下发')
