IO::DeleteFile

IO::DeleteFile(file): bool

Deletes file.

In server scripts, IO:: functions are available only if server configuration variable NXSL.EnableFileIOFunctions is enabled (change requires server restart). They are always available in scripts run by nxscript.

Table 1. Parameters

file

String

File to delete

Return

TRUE if delete was successful and FALSE if not.

IO::DeleteFile("/tmp/file") // Will delete "/tmp/file" file.