Here is an article from ftp online: Remove a Key From an INI File that describes how this can be done using the native WritePrivateProfileString and GetPrivateProfileString methods.