Aaron McCausland
03/25/2026, 2:54 PMCeligo AI
03/25/2026, 2:55 PMAI generated answer (using internal Slack threads):To mass-delete instances for a custom record type in NetSuite, you can use a Mass Update script. Here's a sample script that was shared in the conversations:
javascript
/**
* @NApiVersion 2.1
* @NScriptType MassUpdateScript
* @NModuleScope Public
*/
define(['N/log', 'N/record'], function(log, record) {
function each(params) {
const { type, id } = params;
record.delete({ type, id });
}
return { each };
});
You can deploy this script on the record type you want to delete. Then, use the native Mass Update feature in NetSuite to select the records to be deleted and let the script handle the deletion.
Another method mentioned in the conversations is to use the SuiteCloud Development Framework (SDF). Here are the steps:
1. Import the custom record definition into an SDF project.
2. Delete the record definition (this deletes all records of that type).
3. Import the custom record definition back from your SDF project.
Please note that this method will delete all records for that custom record type, so it's not suitable if you want to keep some records.
If you have a smaller number of records to delete (around 100), you can use the inline editing mode and the shift+ctrl trick to delete all records showing in your list view.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
03/25/2026, 2:55 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.843078673
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.841674864
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.832763731
Celigo AI
03/25/2026, 2:55 PMCeligo AI
03/25/2026, 2:59 PM