Python delete/destruct

Hello,
This should be easy but I’m struggling to find the way to do it.
I start up my FPGA with the following code:
xem = ok.FrontPanel()
xem.OpenBySerial("")
xem.IsOpen()
return_load = xem.ConfigureFPGA(“my_bit_file.bit”)
xem.LoadDefaultPLLConfiguration()

Everything works fine.

Then I power down and disconnect the FPGA from the USB interface. I need to know the appropriate commands to clear/destruct/delete the xem object so once I reconnect the Opal Kelly board I don’t need to restart my python console (I’m working in Eclipse and its nice to keep the command history, etc.). Could someone please help with this?
Thanks - Lucas

You should be able to just call OpenBySerial("") with your existing xem object. This will close any lingering connections and reopen the connection.