public function delete($query)
    {
        $classes = $this->getClassMetadata();
        foreach ($classes as $class) {
            $this->_sm->getClient()->removeAll($class, $query);
        }
    }
public function delete($query)
    {
        $classes = $this->getClassMetadata();
        foreach ($classes as $class) {
            $this->_sm->getClient()->removeAll($class, $query);
        }
    }
public function delete ( $ query ) { $ classes = $ this -> getClassMetadata ( ) ; foreach ( $ classes as $ class ) { $ this -> _sm -> getClient ( ) -> removeAll ( $ class , $ query ) ; } }
Execute a direct delete by query on the associated index and type

@param object $query
Execute a direct delete by query on the associated index and type