code: def del_subkey(self,name):
          
          self.sam |= KEY_WRITE
          subkey = self.get_subkey(name)
          subkey.clear()
          _winreg.DeleteKey(subkey.parent.hkey,subkey.name)
docs: Delete the named subkey, and any values or keys it contains.