Remove survey

@param \Lyon1\Bundle\PoobleBundle\Entity\Survey $survey
183369
public function removeSurvey(\Lyon1\Bundle\PoobleBundle\Entity\Survey $survey)
    {
        $this->surveys->removeElement($survey);
    }
1169782
public function removeTranslation(\Haven\CoreBundle\Entity\CategoryTranslation $translation) {
        $this->translations->removeElement($translation);
    }
486654
public function remove($username, $repository, $pullRequest, array $reviewers)
    {
        return $this->delete('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/pulls/'.$pullRequest.'/requested_reviewers', ['reviewers' => $reviewers]);
    }
509228
public function removeBundle($bundle)
    {
        $bundles = $this->getBundles();
        if (($key = array_search($this->getBundleString($bundle), $bundles)) !== false) {
            unset($bundles[$key]);
            $this->setBundles($bundles);
        }
    }
391449
public function removeGroupe(\Thibautg16\UtilisateurBundle\Entity\Groupe $groupes)
    {
        $this->groupes->removeElement($groupes);
    }
606102
public function remove()
    {
        $this->debug->groupCollapsed(__METHOD__);
        $name = $this->data['name'];
        $this->trashCollectFiles($this->data);
        $this->data = array();
        unset($_SESSION['form_persist'][$name]);
        if (empty($_SESSION['form_persist'])) {
            unset($_SESSION['form_persist']);
        }
        $this->debug->groupEnd();
    }
366015
public function removeTag(\Amulen\ClassificationBundle\Entity\Tag $tags)
    {
        $this->tags->removeElement($tags);
    }
797489
public function removeRecord(\Gpupo\CommonSchema\ORM\Entity\Banking\Report\Record $record)
    {
        return $this->records->removeElement($record);
    }
991159
public function remove($element) : void
    {
        $key = array_search($element, $this->elements);
        if ($key === false) {
            return;
        }
        unset($this->elements[$key]);
    }
1065899
public function removeGroup(\Enhavo\Bundle\NewsletterBundle\Entity\Group $group)
    {
        $this->group->removeElement($group);
    }
1109890
public static function delete_data_for_all_users_in_context(context $context) {
        global $DB;

        if ($context->contextlevel != CONTEXT_MODULE) {
            return;
        }

        if ($surveyid = static::get_survey_id_from_context($context)) {
            $DB->delete_records('survey_answers', ['survey' => $surveyid]);
            $DB->delete_records('survey_analysis', ['survey' => $surveyid]);
        }
    }
1169879
public function removeTranslation(\Haven\PersonaBundle\Entity\EnterpriseTranslation $translations)
    {
        $this->translations->removeElement($translations);
    }
370427
public function remove($enumerator): void
    {
        $ord = ($this->enumeration)::get($enumerator)->getOrdinal();
        unset($this->map[$ord]);
    }
663130
public function removeTranslation(\Sulu\Bundle\ResourceBundle\Entity\OperatorTranslation $translations)
    {
        $this->translations->removeElement($translations);
    }
1115769
public function remove($entity)
    {
        if ($this->evm->hasListeners(Events::preRemove)) {
            $this->evm->dispatchEvent(Events::preRemove, new Event\LifecycleEventArgs($entity, $this->sm));
        }

        $oid = spl_object_hash($entity);
        $this->scheduledForDelete[$oid] = $entity;

        if ($this->evm->hasListeners(Events::postRemove)) {
            $this->evm->dispatchEvent(Events::postRemove, new Event\LifecycleEventArgs($entity, $this->sm));
        }
    }
892127
public function removeLocation(\CampaignChain\CoreBundle\Entity\Location $location)
    {
        $this->locations->removeElement($location);
    }
1166500
public function removeSlave(Server $slave)
    {
        $slaveHashId = spl_object_hash($slave);

        if (isset($this->servers['slaves'][$slaveHashId])) {
            unset($this->servers['slaves'][$slaveHashId]);
        }
    }