DeleteFile
This function deletes a file.
Syntax
- bool DeleteFile(string path)
Parameters
- path: this is the path to the file to delete.
Remarks
This function will have no effect if Lua sandboxing is enabled.
Example
--Create a folder
local path = "MyFile.txt"
FileSystem:CreateFile(path)
--Delete the new folder
FileSystem:DeleteFile(path)