model/db/db.php
public function deleteBy($condition = null)
	{
		if( !is_null($condition) )
		{
			$this->filterBy($condition);
		}
		$matched = $this->load();
		array_each(
			$matched,
			function($model)
			{ /** @var Lib_Model_Db $model */
				$model->delete();
			}
		);
		return !empty($matched);
	}
public function deleteBy($condition = null)
	{
		if( !is_null($condition) )
		{
			$this->filterBy($condition);
		}
		$matched = $this->load();
		array_each(
			$matched,
			function($model)
			{ /** @var Lib_Model_Db $model */
				$model->delete();
			}
		);
		return !empty($matched);
	}
public function deleteBy ( $ condition = null ) { if ( ! is_null ( $ condition ) ) { $ this -> filterBy ( $ condition ) ; } $ matched = $ this -> load ( ) ; array_each ( $ matched , function ( $ model ) { /** @var Lib_Model_Db $model */ $ model -> delete ( ) ; } ) ; return ! empty ( $ matched ) ; }
Delete records by specified conditions.

@param array $condition array of conditions
@return bool deleted?

@todo Update logging to handle batches, then we can implement this function properly
Delete records by specified conditions .