class_docstr: A regular replay buffer which stores transition without any additional structure
docstr: Clean the memory by removing all the episodes
  :return: None
docstr_tok: ["Clean","the","memory","by","removing","all","the","episodes",":","return",":","None"]
code: def clean(self, lock: bool = True) -> None:
      """
      Clean the memory by removing all the episodes
      :return: None
      """
      self.assert_not_frozen()
  
      if lock:
          self.reader_writer_lock.lock_writing_and_reading()
  
      self.transitions = []
  
      if lock:
          self.reader_writer_lock.release_writing_and_reading()
  
imports: from typing import List, Tuple, Union
  import pickle
  import random
  import math
  import numpy
  from rl_coach.core_types import Transition
  from rl_coach.logger import screen
  from rl_coach.memories.memory import Memory, MemoryGranularity, MemoryParameters
  from rl_coach.utils import ReaderWriterLock, ProgressBar
label_desc: Use image node_id 11 for calling the ExperienceReplay obj's underlying member method code with example usage: obj.clean(lock) without return types