code: public function removeTrashItems(array $trashItemIds)
      {
          array_walk($trashItemIds, function(&$trashItemId) {$trashItemId = new \MongoId($trashItemId);});
  
          $qb = $this->createQueryBuilder();
          $qb->remove()
              ->field('id')->in($trashItemIds)
              ->getQuery()
              ->execute();
      }
docs: @param array $trashItemIds
  
  @throws \Doctrine\ODM\MongoDB\MongoDBException