public function deleteObjects($type, array $query = [])
    {
        $type = $this->getFullType($type);
        if (class_exists($type)) {
            $collection = $type::getCollection();
            $result = $this->mongodb->$collection->remove($query);
            return (bool) $result['ok'];
        }
        return false;
    }