delete_files($path[, $del_dir = FALSE[, $htdocs = FALSE]])
Parameters: |
|
---|---|
Returns: |
TRUE on success, FALSE in case of an error |
Return type: |
bool |
Deletes ALL files contained in the supplied path.
Example:
delete_files('./path/to/directory/');
If the second parameter is set to TRUE, any directories contained within the supplied root path will be deleted as well.
Example:
delete_files('./path/to/directory/', TRUE);
Note
The files must be writable or owned by the system in order to be deleted.
Please login to continue.