Performs an authenticated DELETE request to the API using the settings of the RESTDataConnector
The default headers from the RESTDataConnector are included in the request.
Any additional headers, as specified by the parameter, will be merged.
var auth = HttpAuthentication.createOAuthAuthentication("connectorauth");
var opts = new RestOptions();
opts.setSocketTimeout(60);
var dc = connectors.createRESTDataConnector('https://myserviceconnector.org/customer');
var response = dc.delete(dc.createUri('delete'), {options:opts, authentication:auth});
log(response.result);
Further documentation.
JavaScript example: