public function delete($query)
    {
        $classes = $this->getClassMetadata();
        foreach ($classes as $class) {
            $this->_sm->getClient()->removeAll($class, $query);
        }
    }