Method

DeleteFileByName

ModuleFileSystem
LibraryCore
Action


Deletes a file.


Parameters

FilePath (string): The path of the file to be deleted.

Return values

Status (string). Either:

    • "Deleted¬†FilePath"
    • Last error string and execution error status if the file failed to be deleted.

Deleted (boolean): true if the file existed and was successfully deleted, or false for any other reason (e.g. file could not be deleted due to permissions, file did not exist, etc.).

Example

Delete a Nomad lsz file.

FileSystem.DeleteFileByName(FilePath:"C:\\ProgramData\\1E\\NomadBranch\\1EP000AA_1.lsz");


Platforms
  • Windows
  • Linux
  • MacOS
  • Solaris Intel
  • Solaris Sparc
  • Android
Notes