public function remove(DatagateAwareInterface $model, array $options = []) {
		if ($model->isEmpty()) {
			throw new Exceptions\OperationError('Model has no data');
		}
		
		if ($model instanceof Model) {
			return $this->removeModel($model, $options);
		}
		
		
		if ($model instanceof Collection) {
			return $this->removeCollection($model, $options);
		}
		
		throw new Exceptions\OperationError('Unknown instance of the "DatagateAwareInterface" was given: "' . get_class($model) . '"');
	}
public function remove(DatagateAwareInterface $model, array $options = []) {
		if ($model->isEmpty()) {
			throw new Exceptions\OperationError('Model has no data');
		}
		
		if ($model instanceof Model) {
			return $this->removeModel($model, $options);
		}
		
		
		if ($model instanceof Collection) {
			return $this->removeCollection($model, $options);
		}
		
		throw new Exceptions\OperationError('Unknown instance of the "DatagateAwareInterface" was given: "' . get_class($model) . '"');
	}
public function remove ( DatagateAwareInterface $ model , array $ options = [ ] ) { if ( $ model -> isEmpty ( ) ) { throw new Exceptions \ OperationError ( 'Model has no data' ) ; } if ( $ model instanceof Model ) { return $ this -> removeModel ( $ model , $ options ) ; } if ( $ model instanceof Collection ) { return $ this -> removeCollection ( $ model , $ options ) ; } throw new Exceptions \ OperationError ( 'Unknown instance of the "DatagateAwareInterface" was given: "' . get_class ( $ model ) . '"' ) ; }
Remove the record or the many of records by the model or the collection of the models

@param  DatagateAwareInterface $model
@param  array                  $options
@return bool True if succeeded
@throws Exceptions\OperationError
Remove the record or the many of records by the model or the collection of the models