FilePath (string; required): The full path of the file. Environment variables in the form %variable% for windows, and $variable for non-windows operating systems will be expanded.
FilePath parameter name is only available from v3.2 onwards.
In v3.1 and earlier
FileName must be used instead. While the earlier name will still work, we recommend that, from v3.2 onwards,
FilePath is used instead .
FindString (string; required): The search string.
Backup (bool; optional, default
false): Whether or not to backup the file prior to any deletions. A copy of the file will be made in the same directory with the .
bak suffix. If this already exists, an incremental integer will be added to the filename after the extension. If a backup cannot be created, this method an error will be returned.
CaseSensitive (bool, optional, default
true): Whether or not to match case when searching for
FindString in the file.
Occurrence (string; optional, default "
All"): How the deletion occurs. Valid values are "
Last" and "
First" will only delete the first occurrence matched, "
Last" will only delete the last, and "
All" will delete all matches.