def delete_password(self, service, username):
    'Delete the password for the username of the service.\n        '
    try:
        key_name = ('Software\\%s\\Keyring' % service)
        hkey = winreg.OpenKey(winreg.HKEY_CURRENT_USER, key_name, 0, winreg.KEY_ALL_ACCESS)
        winreg.DeleteValue(hkey, username)
        winreg.CloseKey(hkey)
    except WindowsError:
        e = sys.exc_info()[1]
        raise PasswordDeleteError(e)
    self._delete_key_if_empty(service)
Delete the password for the username of the service.
def delete_password(self, service, username):
    '\n        '
    try:
        key_name = ('Software\\%s\\Keyring' % service)
        hkey = winreg.OpenKey(winreg.HKEY_CURRENT_USER, key_name, 0, winreg.KEY_ALL_ACCESS)
        winreg.DeleteValue(hkey, username)
        winreg.CloseKey(hkey)
    except WindowsError:
        e = sys.exc_info()[1]
        raise PasswordDeleteError(e)
    self._delete_key_if_empty(service)