code: public function removeContentVersion(array $ids)
      {
          $contentMongoIds = array();
          foreach ($ids as $id) {
              $contentMongoIds[] = new \MongoId($id);
          }
  
          $qb = $this->createQueryBuilder();
          $qb->remove()
              ->field('id')->in($contentMongoIds)
              ->getQuery()
              ->execute();
      }
docs: @param array $ids
  
  @throws \Doctrine\ODM\MongoDB\MongoDBException