Delete a particular blacklist entry
@param $host
@return bool
@throws \GuzzleHttp\Exception\GuzzleException
@throws \alphayax\freebox\Exception\FreeboxApiException
498816
public function removeBlackListEntry($host)
    {
        $service = sprintf(self::API_DOWNLOAD_ITEM_BLACKLIST_EMPTY, $host);
        $rest    = $this->callService('DELETE', $service);

        return $rest->getSuccess();
    }
528986
public function remove(string $host, array $params = [])
    {
        $path = $this->buildKnownHostsPath($host);

        return $this->delete($path, $params);
    }
1213100
public function deleteDir($dirname)
    {
        if (substr($dirname, -1, 1) != '/') {
            $dirname = $dirname . '/';
        }
        $result = $this->client->deleteObject($this->bucket, $dirname);

        return true;
    }
171157
public function remove($mailbox = NULL)
        {
            try {

                if (is_null($mailbox))
                    throw new Exception("Mail box name is  not provided or is null", 503);

                $uri    = "/mailboxes/" . $mailbox;
                $result = $this->pestObject->delete($uri);

                return $result;

            } catch (Exception $e) {
                $this->phpariObject->lasterror = $e->getMessage();
                $this->phpariObject->lasttrace = $e->getTraceAsString();

                return FALSE;
            }
        }
1279701
public function disallowHost($host, $matchSubdomains = true)
	{
		$this->disallowedHosts[] = $host;

		if ($matchSubdomains && substr($host, 0, 1) !== '*')
		{
			$this->disallowedHosts[] = '*.' . $host;
		}
	}
768769
final public function delete($capability) {

        if ( array_key_exists($capability, $this->rpc_capabilities) ) {

            unset($this->rpc_capabilities[$capability]);

            $this->logger->debug("Deleted capability $capability");

            return true;

        } else {

            $this->logger->warning("Cannot delete capability $capability: entry not found");

            return false;

        }

    }
178173
final public function delete($name) {

        if ( array_key_exists($name, $this->rpc_methods) ) {

            unset($this->rpc_methods[$name]);

            $this->logger->debug("Deleted method $name");

            return true;

        } else {

            $this->logger->warning("Cannot delete method $name: entry not found");

            return false;

        }

    }
1250387
public function remove(string $index): bool
    {
        $this->withIndexFilter($index);

        $deleted = $this->createDeleteBuilder()->execute();

        $this->clearFetchParameters();

        return (int)$deleted > 0;
    }
751829
public static function delete(String $name = NULL) : Bool
    {
        $name  = self::$settings['name']  ?? $name;
        $input = self::$settings['input'] ?? false;

        self::$settings = [];

        switch( $input )
        {
            case 'post'    : unset($_POST[$name]);    break;
            case 'get'     : unset($_GET[$name]);     break;
            case 'env'     : unset($_ENV[$name]);     break;
            case 'server'  : unset($_SERVER[$name]);  break;
            case 'request' : unset($_REQUEST[$name]); break;
        }

        return true;
    }
1329581
public function isHost(string $host, bool $includeSubDomains = false) : bool
    {
        $thisHost = strtolower($this->host);
        $thatHost = strtolower($host);

        if (! $includeSubDomains) {
            return $thisHost === $thatHost;
        }

        $thisHost = explode('.', $thisHost);
        $thatHost = explode('.', $thatHost);

        return array_slice($thisHost, - count($thatHost)) === $thatHost;
    }
570294
public function setHost($host)
    {
        if (preg_match(self::PATTERN_MATCH_HOST, $host) !== 1) {
            throw new \InvalidArgumentException('"' . $host . '" is not valid host as part of a URI.', 1184071240);
        }

        $this->host = $host;
    }
1127488
public static function delete($key)
    {
        // Check key existence
        if (!self::check($key)) {
            throw new \Exception('Configuration key "' . $key . '" doesn\'t exists');
            return false;
        }
        // Delete key and value
        unset(self::$configList[$key]);
        return true;
    }
314867
private function filterHost(string $host): string
    {
        if ($host && $host !== self::HTTP_DEFAULT_HOST && strpos($host, '.') === false) {
            throw new InvalidArgumentException("Host '{$host}' is illegal!");
        }

        return strtolower($host);
    }
807647
public function hasPushService($host) : bool
    {
        foreach ($this->pushServices as $pushService) {
            if ($pushService->supportsHost($host)) {
                return true;
            }
        }

        return false;
    }
847777
public function delete($key)
    {
        if ($this->enabled) {
            return $this->pool->getItem($key)->clear();
        } else {
            return false;
        }
    }
714997
public function delete()
    {
        if (!$this->isXmlHttpRequest()) {
            throw new \Exception("wrong request mode");
        }

        $deleted = $this->getClassService()->deleteInstance($this->getCurrentInstance());

        $this->returnJson(array(
            'deleted' => $deleted
        ));
    }
990050
public function blockOne($host)
    {
        return $this->exists($host)
            ? $this->updateOne($host)
            : $this->addOne($host);
    }