Delete FIle

From CodeCodex

<highlightsyntax> <? function file_delete($file) {

    chmod($file, 0777);
        if(unlink($file)) {
         return true;
        } else {
         return false;
        }

} ?> </pre>