IO::DeleteFile
- IO::DeleteFile(file): bool
-
Deletes file.
In server scripts,
IO::functions are available only if server configuration variableNXSL.EnableFileIOFunctionsis enabled (change requires server restart). They are always available in scripts run bynxscript.Table 1. Parameters file
String
File to delete
ReturnTRUEif delete was successful andFALSEif not.IO::DeleteFile("/tmp/file") // Will delete "/tmp/file" file.