public function delete($location, $body = null)
    {
        curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, "DELETE");

        if ($body) {
            curl_setopt($this->curl, CURLOPT_POSTFIELDS, $body);
        }

        return $this->execute('DELETE', $location);
    }
public function delete($location, $body = null)
    {
        curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, "DELETE");

        if ($body) {
            curl_setopt($this->curl, CURLOPT_POSTFIELDS, $body);
        }

        return $this->execute('DELETE', $location);
    }
public function delete ( $ location , $ body = null ) { curl_setopt ( $ this -> curl , CURLOPT_CUSTOMREQUEST , "DELETE" ) ; if ( $ body ) { curl_setopt ( $ this -> curl , CURLOPT_POSTFIELDS , $ body ) ; } return $ this -> execute ( 'DELETE' , $ location ) ; }
Executes a DELETE on a resource.

@param  String $location
@return CurlClientResponse
Executes a DELETE on a resource .