src/WebRequest.php
public function deletePayload($data = null, $contentType = "text/plain")
    {
        $this->addRequestHeader("Content-Type", $contentType);
        return $this->delete($data);
    }
public function deletePayload($data = null, $contentType = "text/plain")
    {
        $this->addRequestHeader("Content-Type", $contentType);
        return $this->delete($data);
    }
public function deletePayload ( $ data = null , $ contentType = "text/plain" ) { $ this -> addRequestHeader ( "Content-Type" , $ contentType ) ; return $ this -> delete ( $ data ) ; }
Make a REST DELETE method call sending a payload

@param string $data
@param string $contentType
@return string
@throws \ByJG\Util\CurlException
Make a REST DELETE method call sending a payload