May be it would be safer to read the list of sections with INI.ReadSections and then delete each section with INI.EraseSection ? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20250728/e30817d7/attachment.htm>