Method DeleteFilesInTempFolder
DeleteFilesInTempFolder(string?)
Deletes files in the temporary folder that match the specified search pattern.
public static bool DeleteFilesInTempFolder(string? searchPattern = null)
Parameters
searchPatternstringThe search pattern to match files (e.g., "*.txt"). If null, all files in the temporary folder are deleted.
Returns
- bool
trueif the operation succeeds or the folder does not exist;falseif an exception occurs during the operation.