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. The context parameter was added as of PHP 5.0.0. See also rmdir for removing directories.