Skip to content

Developer Function: Server Script: httpClient.Delete

Overview

Used when issuing the DELETE method using "httpClient" in "Server Script".

Syntax

httpClient.Delete();

Parameters

There are no parameters.

Return Value

String-type return value

Usage Example

The following example issues a DELETE method to an external API server and logs the results.

JavaScript
httpClient.RequestUri = 'https://servername/api/.....';
let response = httpClient.Delete();
if(httpClient.IsSuccess) {
    context.Log('Success: ' + response);
}else{
    context.Log('Error: (' + httpClient.StatusCode + ')' + response);
}