Remove traces of inmem