Modules
Objects/Functions
SuiteScript 2.0
{search}.delete({id: {string}})
N/search Module
search.delete()
Method Description:
Deletes an existing saved search. The saved search could have been created using the UI or created with search.create(options) and Search.save().
The search.delete(options) method also includes a promise version, search.delete.promise(options). For more information about promises, see Promise Object.
Returns:
void
Supported Script Types:
All script types
For more information, see SuiteScript 2.0 Script Types.
Governance:
5 units
Module:
N/search Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=search.delete(options)
Example:
// Code Example 1
//Add additional code
//...
search.delete({
id: 'customsearch_my_so_search'
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4345775501.html