public function deleteAllCrops($filter = null, $dry_run = false) {
        $crops = $this->listAllCrops($filter);
        $disk = $this->getCropsDisk();
        if (!$dry_run) foreach($crops as $crop) $disk->delete($crop);
        return $crops;
    }
public function deleteAllCrops($filter = null, $dry_run = false) {
        $crops = $this->listAllCrops($filter);
        $disk = $this->getCropsDisk();
        if (!$dry_run) foreach($crops as $crop) $disk->delete($crop);
        return $crops;
    }
public function deleteAllCrops ( $ filter = null , $ dry_run = false ) { $ crops = $ this -> listAllCrops ( $ filter ) ; $ disk = $ this -> getCropsDisk ( ) ; if ( ! $ dry_run ) foreach ( $ crops as $ crop ) $ disk -> delete ( $ crop ) ; return $ crops ; }
Delete ALL crops

@param  string $filter A regex pattern
@param  boolean $dry_run Don't actually delete any
@return array List of crops that were deleted
Delete ALL crops