unlink Deletes a file Description boolunlink stringfilename resourcecontext Deletes filename. Similar to the Unix C unlink() function. &return.success; As of PHP 5.0.0 unlink can also be used with some URL wrappers. Refer to for a listing of which wrappers support unlink. ¬e.context-support; See also rmdir for removing directories.