Skip to main content

Delete-Section-s

Command Description

Delete the specified section under the INI config file

Command Prototype

INI.DeleteSection(sFile, sSection)

Parameter Description

ParameterRequiredTypeDefaultDescription
sFileTruepath'''C:\Users'''The path of the INI file
sSectionTruestring""Name of the section in the INI file to be deleted

Demo

/************************************Remove subsection************ ************************ 
Command prototype:
INI.DeleteSection('''C:\Users''', "")
Input parameters:
sFile--path where the INI configuration file is located
sSection--name of the section to delete the INI configuration file
Outgoing parameters:
None
********************************************************************************/
Dim sFile='''C:\Users\Chance\Desktop\testINI\data.ini'''
Dim sSection="RPA"
INI.DeleteSection (sFile, sSection)