Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=https.delete.promise(options) for more information.
N/https Module
https.delete.promise()
Method Description:
Sends an HTTP DELETE request asynchronously.
The parameters and errors thrown for this method are the same as those for https.delete(options). For more information on promises, see Promise Object.
Returns:
Promise Object
Synchronous Version:
https.delete(options)
Supported Script Types:
Client scripts
For more information, see SuiteScript 2.0 Client Script Type.
Governance:
10 units
Module:
N/https Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=https.delete.promise(options)
Example:
// Code Example 1
// Add additional code
//...
var headerObj = {
name: 'Accept-Language',
value: 'en-us'
};
https.delete.promise({
url: 'https://www.mytestwebsite.com',
headers: headerObj
})
.then(function(response){
log.debug({
title: 'Response',
details: response
});
})
.catch(function onRejected(reason) {
log.debug({
title: 'Invalid Request: ',
details: reason
});
})
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4619548807.html