def METHOD_NAME(self):
    """
    Should remove all recorded data held by the simulator and, ideally,
    free up the memory.
    """
    for id in set.union(*self.recorded.values()):
        if hasattr(id._cell, "traces"):
            for variable in id._cell.traces:
                id._cell.traces[variable].resize(0)
        if id._cell.rec is not None:
            id._cell.spike_times.resize(0)
        else:
            id._cell.clear_past_spikes()