Webiny\Component\Storage\Directory\DirectoryInterface::delete PHP Method

delete() public method

Delete directory and all of it's contents recursively
public delete ( boolean $fireStorageEvents = true ) : boolean
$fireStorageEvents boolean (Optional) If you don't want to fire StorageEvent::FILE_DELETED set this to false
return boolean
    public function delete($fireStorageEvents = true);