@brief Delete a single specified object

@param mixed[] $requestParams Array of the parameters to submit with DELETE request.
Varies by object.

@return string JSON formatted HTTP response or error message
541992
protected function _deleteSingle($requestParams)
    {
        $requiredParams = array("id");
        return $this->client->request($requestParams, $this->_endpoint, "delete", $requiredParams, $options = NULL);
    }
395202
protected function cleanParams(array $params)
    {
        $values = [];
        foreach ($params as $name => $details) {
            $this->cleanValueFrom($name, $details['value'], $values);
        }

        return $values;
    }
1004978
public function delete($url, $params = array(), $options = array())
    {
        return $this->request($url, self::DELETE, $params, $options);
    }
1357004
public function remove(array $params)
    {
        $key = array_get($params, 'key');
        $field = array_get($params, 'field');

        return $this->getConnection()->hdel($key, [$field]);
    }
5040
public static function delete($url, $httpHeaders = array())
    {
        $ch = self::init($url, $httpHeaders);
        //set the request type
        curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');

        return self::processRequest($ch);
    }
100600
public static function delete($url, $httpHeaders = array())
    {
        self::prepareRequest($httpHeaders);

        $response = CurlRequest::delete($url, self::$httpHeaders);

        return self::processResponse($response);
    }
392486
public function deleteCacheItems(Request $request): JsonResponse
    {
        $tags = $this->serializer->decode($request->getContent(), 'json');

        if (!is_array($tags) || empty($tags)) {
            throw new InvalidRequestParameterException('tags');
        }

        $tags = array_map(function ($tag) {
            if (!is_string($tag)) {
                throw new InvalidRequestParameterException('tags');
            }

            return $tag;
        }, $tags);

        try {
            $response = $this->cache->deleteItems($tags);
        } catch (InvalidArgumentException $e) {
            return new JsonResponse(['success' => false, 'error' => $e->getMessage()]);
        }

        return new JsonResponse(['success' => $response]);
    }
1036341
public function deleteAll(array $queryParams = [])
    {
        $response = $this->api->settings()->deleteAll($queryParams);

        return new BaseResponse($response);
    }
819934
public function delete(string $url, array $params = []): HttpResponse
    {
        return $this->send('DELETE', $url, [
            $this->bodyFormat => $params,
        ]);
    }
356798
public function submit(RequestParameters $params)
    {
        $options = array(
            'http' => array(
                'header' => "Content-type: application/x-www-form-urlencoded\r\n",
                'method' => 'POST',
                'content' => $params->toQueryString(),
                // Force the peer to validate (not needed in 5.6.0+, but still works)
                'verify_peer' => true,
            ),
        );
        $context = stream_context_create($options);
        $response = file_get_contents($this->siteVerifyUrl, false, $context);

        if ($response !== false) {
            return $response;
        }

        return '{"success": false, "error-codes": ["'.ReCaptcha::E_CONNECTION_FAILED.'"]}';
    }
625695
public function deleteByKey($key, array $queryParams = [])
    {
        $response = $this->client->delete($this->uri($key), [
            'query' => $queryParams,
        ]);

        return $this->handleResponse($response);
    }
539602
public function remove($params = [])
    {
        $this->params = array_diff_key($this->params, array_fill_keys($params, ''));
        return $this;
    }
1371751
public function delete($url, array $headers = [], array $params = [])
    {
        return $this->instance->createHttpClient()->delete($url, $headers, $params);
    }
922396
public static function delete(string $url, array $params = null, array $headers = null)
    {
        return static::quickRequest($url, self::DELETE, $params, $headers);
    }
297258
public function delete(Request $request)
    {
        $category = $this->category->find($request->get('category'));

        if (!$category) {
            return Response::json(['errors' => true]);
        }

        $this->category->destroy($category);

        return Response::json(['errors' => false]);
    }
458997
public function removeItems(array $params)
    {
        $response = $this->handler->handle('DELETE', $params);

        return $this->make($response, false);
    }
531043
public function deleteAll(array $queryParams = [])
    {
        $response = $this->api->orgs()->deleteAll($queryParams);

        return new BaseResponse($response);
    }