def UnregisterHelpFile(helpFile, helpDesc=None):
 key = win32api.RegOpenKey(win32con.HKEY_LOCAL_MACHINE, 'Software\\Microsoft\\Windows\\Help', 0, win32con.KEY_ALL_ACCESS)
 try:
  win32api.RegDeleteValue(key, helpFile)
 except win32api.error as (code, fn, desc):
  import winerror
  if (code != winerror.ERROR_FILE_NOT_FOUND):
   raise win32api.error, (code, fn, desc)
 finally:
  win32api.RegCloseKey(key)
 if (helpDesc is None):
  helpDesc = helpFile
 try:
  win32api.RegDeleteKey(GetRootKey(), (BuildDefaultPythonKey() + ('\\Help\\%s' % helpDesc)))
 except win32api.error as (code, fn, desc):
  import winerror
  if (code != winerror.ERROR_FILE_NOT_FOUND):
   raise win32api.error, (code, fn, desc)

def UnregisterHelpFile ( helpFile , helpDesc = None ) : key = win32api . RegOpenKey ( win32con . HKEY_LOCAL_MACHINE , 'Software\\Microsoft\\Windows\\Help' , 0 , win32con . KEY_ALL_ACCESS ) try : win32api . RegDeleteValue ( key , helpFile ) except win32api . error as ( code , fn , desc ) : import winerror if ( code != winerror . ERROR_FILE_NOT_FOUND ) : raise win32api . error , ( code , fn , desc ) finally : win32api . RegCloseKey ( key ) if ( helpDesc is None ) : helpDesc = helpFile try : win32api . RegDeleteKey ( GetRootKey ( ) , ( BuildDefaultPythonKey ( ) + ( '\\Help\\%s' % helpDesc ) ) ) except win32api . error as ( code , fn , desc ) : import winerror if ( code != winerror . ERROR_FILE_NOT_FOUND ) : raise win32api . error , ( code , fn , desc )
unregister a help file in the registry .