ein kleiner Blick in die Hilfe bringt folgendes zu Tage.
Zitat:
procedure DeleteKey(const Section, Ident: String); override;
Description
Call DeleteKey to erase an INI file entry. Section is string containing the name of an INI file section, and Ident is a string containing the name of the key from for which to set a nil value.
Note: Attempting to delete a key in a nonexistent section or attempting to delete a nonexistent key are not errors. In these cases, DeleteKey does nothing.
Grüße
Klaus