FILE_DELETE

FILE_DELETE F

DELETES THE FILE F

  • Type: Command
  • Parameter: 1
  • Group: Files

ACTION

The command FILE_DELETE F deletes the file F. F is the absolute or relative name of the file.

The absolute name is the entire name, related to the root of the file system.

The relative name is the name of the file related to the current directory (ex: "file.txt" or "/file.txt" or "\file.txt").

SYNTAX: FILE_DELETE F

  • F = absolute or relative name of the file.

USE

  • The command FILE_DELETE is used to delete a file.

ERROR

  • If file F does not exist.
  • If F is not a correct name of file.

EXAMPLE

rem delete the file "test.txt" of the current directory

file_delete "test.txt"

SEE ALSO

FILE_RENAME

FILE_EXISTS()