yii\httpclient\Client::delete PHP Method

delete() public method

Creates 'DELETE' request.
public delete ( string $url, array | string $data = null, array $headers = [], array $options = [] ) : Request
$url string target URL.
$data array | string if array - request data, otherwise - request content.
$headers array request headers.
$options array request options.
return Request request instance.
    public function delete($url, $data = null, $headers = [], $options = [])
    {
        return $this->createRequestShortcut('delete', $url, $data, $headers, $options);
    }