What is the best way to securely delete files on a web server using PHP?

When deleting files on a web server using PHP, it is important to ensure that the files are securely deleted to prevent unauthorized access. One way to securely delete files is to use the `unlink()` function in PHP, which deletes the file from the server. Additionally, you can use the `file_exists()` function to check if the file exists before deleting it to avoid errors.

<?php
$file_path = '/path/to/file.txt';

if (file_exists($file_path)) {
    unlink($file_path);
    echo 'File deleted successfully.';
} else {
    echo 'File does not exist.';
}
?>