Discussions
New to NetSuite | N/record: record.delete(options) Method
In our previous article, New to NetSuite | Understanding SuiteScript 2.x Modules, we explored the SuiteScript Modules and N/record module, New to NetSuite | N/record Module Overview, which is used to interact with records. Now, we will take a closer look at one of the members of N/record: record.delete(options) Method
The record.delete(options) method permanently removes a record from the system based on the record type and internal ID you provide.
This is helpful when you need to automate record clean-up or remove test data programmatically.
Syntax
var id = record.delete({
type: record.Type.SALES_ORDER, // or any supported record type Richard James Uri - SuiteCloud | WMS Tech | SuiteCommerce Advanced
----
- NetSuite Admin Corner | New to NetSuite
- Explore the NSC Webinars Category
- Join our poll and share your ideas! We want to know what you think. Don't forget to comment and make your voice heard!
