Removes all facet values from the request by a certain facet name

@param string $facetName

@return SearchRequest
15562
public function removeAllFacetValuesByName($facetName)
    {
        $facetValues = $this->getActiveFacets();
        $facetValues = array_filter($facetValues, function($facetValue) use ($facetName) {
            $parts = explode(':', $facetValue, 2);
            return $parts[0] !== $facetName;
        });

        $this->setActiveFacets($facetValues);
        $this->stateChanged = true;
        return $this;
    }
408427
public function remove($fieldname)
    {
        if (isset($this->fields[$fieldname]))
            unset($this->fields[$fieldname]);

        return $this;
    }
91254
public function removeFromIndex(Searchable $subject, $indexName = null)
    {
        $indexName = $this->resolveIndexName($indexName);

        $this->elasticsearch->delete(
            [
                'index' => $indexName,
                'type'  => $subject->getSearchableType(),
                'id'    => $subject->getSearchableId(),
            ]
        );
    }
856276
public function removeData($name)
    {
        if (is_array($this->data)) {
            unset($this->data[$name]);
        } else {
            $this->data->$name = null;
        }

        return $this;
    }
1253049
public function remove($name)
    {
        $name = $this->getFullName($name);

        // Delete existing response cookie
        if (isset($this->responseCookies[$name])) {
            unset($this->responseCookies[$name]);
        }

        // Set response cookie if request cookie was set
        if (null !== $this->get($name)) {
            // Note: timestamp '1' = '1970-01-01 00:00:00 UTC'
            $this->set($name, 'deleted', '1');
        }

        return $this;
    }
724521
public function removeFacet(Facet $facet)
    {
        $this->om->remove($facet);
        $this->om->flush();
        $this->reorderFacets();
    }
495868
public function remove(string $name): Headers
	{
		unset($this->headers[$this->normalizeName($name)]);

		return $this;
	}
784675
public function removeField(String $fieldName)
    {
        $query = 
            "ALTER TABLE " . 
            '`' . $this->m_name . '` ' . 
            "DROP COLUMN `" . $field . "`";
        
        $result = $this->m_mysqliConn->query($query);
        return $result;
    }
1336101
public function removeMethod($name)
    {
        if (isset($this->methods[$name])) {
            unset($this->methods[$name]);
        }

        return $this;
    }
247909
public function removeFilterByFieldName($fieldName)
    {
        return $this->removeFilterByFunction(
            function($key, $query) use ($fieldName) {
                $queryString = $query->getQuery();
                $storedFieldName = substr($queryString,0, strpos($queryString, ":"));
                return $storedFieldName == $fieldName;
            }
        );
    }
169078
public function removeIndexByName($name)
    {
        $action = DropIndex::buildFromName($this->table, $name);
        $this->actions->addAction($action);

        return $this;
    }
1185721
public function deleteIndex($indexName)
    {
        $index = $this->getIndex($indexName);
        if ($index->exists()) {
            return $index->delete();
        }

        return null;
    }
1016862
public function removeHeader(string $name): Request
    {
        if ($this->hasHeader($name)) {
            unset($this->headers[$name]);
        }
        return $this;
    }
637587
public function remove($name) {
		if (substr($name, -1) === '_') {
			throw new InvalidArgumentException('$name cannot end with "_"');
		}
		unset($this->{$name});
		unset($this->factories_[$name]);
		return $this;
	}
811878
public function removeByName($constantName)
    {
        $removedList = new self();
        $list = $this->getIterator();
        foreach ($list as $index => $constant) {
            $currentName = $constant->getName();
            if ((is_array($constantName) && in_array($currentName, $constantName))
                || ($constant->getName() === $constantName)
            ) {
                $removedList->add(clone $constant);
                $this->remove($index);
            }
        }

        return $removedList;
    }
1213567
protected function getSelectedItemValues(AbstractFacet $facet, $facetNameToCheckRequirementsOn)
    {
        $facetToCheckRequirements = $facet->getResultSet()->getFacets()->getByName($facetNameToCheckRequirementsOn)->getByPosition(0);
        if (!$facetToCheckRequirements instanceof AbstractFacet) {
            throw new \InvalidArgumentException('Requirement for unexisting facet configured');
        }

        if (!$facetToCheckRequirements->getIsUsed()) {
            // unused facets do not have active values.
            return [];
        }

        $itemValues = [];
        $activeFacetItems = $facetToCheckRequirements->getAllFacetItems();
        foreach ($activeFacetItems as $item) {
            /** @var AbstractFacetItem $item */
            if ($item->getSelected()) {
                $itemValues[] = $item->getUriValue();
            }
        }

        return $itemValues;
    }
393471
public function removeByName($propertyName)
    {
        $removedList = new self();
        $list = $this->getIterator();
        foreach ($list as $index => $property) {
            if ((is_array($propertyName) && in_array($property->getName(), $propertyName))
                || ($property->getName() === $propertyName)
            ) {
                $removedList->add(clone $property);
                $this->remove($index);
            }
        }

        return $removedList;
    }