code: def _clear(self):
          
          self.root = RootGroup()
          self.groups = []
          self.entries = []
          self.readonly = False
          self.header = None
          self.password = None
          self.keyfile = None
          self.filepath = None
docs: Resets/clears out internal object state.