Multiple choice technology web technology

The function used to delete a file is:

  1. unlink()

  2. delete_file()

  3. delete()

  4. remove()

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

unlink() is the PHP function used to delete files. delete_file(), delete(), and remove() are not standard PHP file deletion functions - these might exist in other languages but not in PHP's filesystem functions.