standard.C.io._unlink

_unlink is available since version 1.0.

Prototype:

number _unlink(string filename)

Parameters

filename
[in] Name of file to remove

Description:

The _unlink function deletes the file specified by filename.

Return value:

_unlink returns 0 if successful. Otherwise, the function returns -1.

Example
import standard.C.io

define FILENAME     "test.txt"

class Main {
     function Main() {               
          if (_unlink(FILENAME)==-1)
               echo "Could not delete "+FILENAME;
          else
               echo "Deleted "+FILENAME;
     }
}  

Results 
Deleted test.txt