Deletes the given file if it exists.
public static deleteFileIfExists ( string $pathToFile ) : boolean | ||
$pathToFile | string | |
return | boolean | true in case of success or if file does not exist, false otherwise. It might fail in case the file is not writeable. |