PHP unlink() Function
Complete PHP Filesystem Reference Manual
Definition and Usage
The unlink() function deletes a file.
Returns TRUE on success, or FALSE on failure.
Syntax
unlink(filename,context)
| Parameters | Description |
|---|---|
| filename | Required. Specifies the file to delete. |
| context | Optional. Specifies the context of the file handle. A context is a set of options that can modify the behavior of a stream. |
Example
Complete PHP Filesystem Reference Manual