Modules

filter

 

Objects/Functions

module (N/search)

SuiteScript 2.0

search.delete.promise(options)

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=search.delete.promise(options) for more information.

N/search Module
search.delete.promise()
Method Description: Deletes an existing saved search asynchronously and returns it as a search.Search object. The saved search can be created using the UI or created with search.create(options) and Search.save(). The parameters and errors thrown for this method are the same as those for search.delete(options). For more information on promises, see Promise Object.
Returns: Promise Object
Synchronous Version: search.delete(options)
Supported Script Types: All client-side scripts For more information, see SuiteScript 2.0 Client Script Type.
Governance: 5 units
Module: N/search Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=search.delete.promise(options)

Example:

// Code Example 1
//Add additional code
//...
search.delete.promise({id: 'customsearch_txn_search_salesorder'})
.then(function(){
search.load({
id: 'customsearch_txn_search_salesorder'
});
})
.catch(function onRejected(reason) {
log.debug({
details: 'Invalid search: ' reason.name
});
});
//...
//Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4440793315.html