network.http.delete
Performs an HTTP DELETE to a specified network resource URI and returns the response.
Input Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| uri | Text | Yes | Network resource URI |
| [headers] | Text | No | Category to group insight within |
Returns
An array response from the network resource, including both the response code and message.
Common Response Codes
| Code | Description |
|---|---|
| 200 | Success / OK |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 500 | Internal Server Error |
| 501 | Not Implemented |
Examples
// send http DELETE
var response = network.http.delete("https://mydomain.com/test");
// get response code and message
var code = response[0];
var message = response[1];
// prepare headers
var headers = {
"X-User-Name": "John Doe",
"Age": 30
};
// send http DELETE, passing URL arguments and headers
var response = network.http.delete("https://mydomain.com/test?User=Bob", headers);
// get response code and message
var code = response[0];
var message = response[1];
Remarks
Inputs can be passed both on the resource URI and via any passed header name-value pairs.
