code: public function removeNodeVersions(array $nodeIds)
      {
          $nodeMongoIds = array();
          foreach ($nodeIds as $nodeId) {
              $nodeMongoIds[] = new \MongoId($nodeId);
          }
  
          $qb = $this->createQueryBuilder();
          $qb->remove()
              ->field('id')->in($nodeMongoIds)
              ->getQuery()
              ->execute();
      }
docs: @param array $nodeIds
  
  @throws \Exception