SilverStripe\Assets\Filesystem::removeFolder
Remove a directory and all subdirectories and files.
Signature
public function removeFolder(String
$folder,
[boolean
$contentsOnly = false] )
Parameters
$folder
— object- Absolute folder path
$contentsOnly
— boolean- If this is true then the contents of the folder will be removed but not the
folder itself