code: def clear(self):
              
          self.sam |= KEY_WRITE
          for v in list(self.values()):
              del self[v.name]
          for k in list(self.subkeys()):
              self.del_subkey(k.name)
docs: Remove all subkeys and values from this key.