def delete(self, key, subkey):
        """ Deletes a windows registry key. Same
        as DeleteKey of _winreg """
        
        if type(key) is str:
            hkey = self.map_key(key)
        else:
            hkey = key
            
        if not hkey: raise RegistryError,"could not find registry key for %s" % key
        try:
            wreg.DeleteKey(hkey, subkey)
        except EnvironmentError, e:
            raise RegistryError, e
 Deletes a windows registry key. Same
        as DeleteKey of _winreg 
recipes/Python/476229_YARW__Yet_Another_Registry/recipe-476229.py