Skip to content
This repository was archived by the owner on Jan 8, 2022. It is now read-only.
njlg edited this page Jan 13, 2013 · 1 revision

unlink — Deletes a file

Prototype

bool unlink( string filename )

Parameters

filename — Path to the file.

Return Values

Returns true on success or false on failure.

Examples

local result = unlink("new.txt");
if( result ) {
  print("Deleted the file!");
}
else {
  print("File could not be deleted");
}
Clone this wiki locally