public function removeBy(array $criteria, bool $flush = false)
    {
        $this->runManagerAction('remove', $this->findBy($criteria), $flush);
    }
public function removeBy(array $criteria, bool $flush = false)
    {
        $this->runManagerAction('remove', $this->findBy($criteria), $flush);
    }
public function removeBy ( array $ criteria , bool $ flush = false ) { $ this -> runManagerAction ( 'remove' , $ this -> findBy ( $ criteria ) , $ flush ) ; }
Remove object filtered by a set of criteria.

@param array $criteria
@param bool  $flush
Remove object filtered by a set of criteria .