Purpose – Delete the records from Netsuite
Type – Mass Update
How to use
– 1.Create a script record
– 2.Deploy for the record type deleted
– 3.Perform mass update for the records.
CODE
/**
* @NApiVersion 2.x
* @NScriptType MassUpdateScript
* @NModuleScope SameAccount
*/
/*
Mass delete any record without exception
*/
define(['N/record'],
function(record) {
return {
each:record.delete
};
});
Be very care full when you use this script as the record type is not defined if you are applying this to wrong record type all the records will get deleted!