WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0
Remove a file (delete it)
This function deletes a file. It is similar to the Unix C unlink() function.
$filename: Using a /
at the beginning will make it relative to the root, otherwise it will be relative to the current working directory, which is either the folder that the script was started in or as was set by chdir().
Integer: 0=success, otherwise error code
<? $fh=fopen('unlink_example.html','a'); fwrite($fh,'Hello world!'); fclose($fh); $res=unlink('unlink_example.html'); print("Unlinking the file returned: ".$res); ?>
rmdir() - Remove a directory, with optional deletion of contents