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