moved device.delete to dbmgr