It’s all in the way you ask the question, - when you use a search engine – and I must not be asking correctly.

I need to locate a section within an INI file and delete all keys that follow, until the next section.

WriteProfileString will allow me to set the key’s value to blank, but I need to delete the key altogether.

Can someone help?