====== delete ======
{#JAPI Joomla.Framework FileSystem JFolder::delete #}
Deletes a folder. If files or sub-folders exist within the folder, they are deleted as well. If safe mode is enabled, FTP will be used to delete the folder (if it is enabled).
This function returns true if the operation is successful, false otherwise.
===== Syntax =====
boolean delete ( **$path** )
| **$path** | string | is a string containing the path to the folder to delete. |
===== Examples =====
jimport( 'joomla.filesystem.folder' );
if (JFolder::delete( 'test2' )) {
echo "Folder successfully deleted!";
} else {
echo "Folder deletion failed!";
}
might produce:
Folder successfully deleted!
----
~~DISCUSSION~~