Purpose With RemoveFile you can remove a file.
Example RemoveFile "X:\GuiXTFiles\temp.txt"

The file is removed.

With if Q[ok] you query whether the file existed and was removed.

Format RemoveFile "filename"
& Tricks
  • With OpenFile and option  -output  you can delete the file content without deleting the directory entry. RemoveFile deletes the directory entry as well.
Components GuiXT + InputAssistant