void reset ( boolean deleteFile ) { String path = this . path ; this . path = null ; this . projectId = - 1 ; this . projectToken = null ; this . deviceId = null ; this . client = null ; synchronized ( dataStoreLock ) { dataStore = null ; dataBatches . clear ( ) ; } if ( deleteFile ) { File f = new File ( path , DEVICE_FILENAME ) ; if ( f . exists ( ) ) { f . delete ( ) ; } } }
Resets the iobeam client to uninitialized state including removing any added data .