delete_dir($filepath)
Parameters: |
|
---|---|
Returns: |
TRUE on success, FALSE on failure |
Return type: |
bool |
Lets you delete a directory and everything it contains. Supply the source path to the directory with a trailing slash.
Important
Be VERY careful with this method! It will recursively delete everything within the supplied path, including sub-folders and all files. Make absolutely sure your path is correct. Try using list_files()
first to verify that your path is correct.
$this->ftp->delete_dir('/public_html/path/to/folder/');
Please login to continue.