Skip to content

TJSONIniFile.EraseSection

Removes an entire section from the JSON ini file

Declaration

Source position: jsonini.pp line 76

public 
procedure TJSONIniFile.EraseSection(const Section: string);  override;

Description

EraseSection removes the specified section and all its key-value pairs from the JSON ini file. If the section does not exist, the method has no effect. The file is automatically updated unless CacheUpdates is True.

See also

Name Description
DeleteKey Removes a key from a section