Assuming you don't want / can't write a script
# suitescript
c
Assuming you don't want / can't write a script
m
Copy code
function massDelete(type, id) {
    try {
        nlapiDeleteRecord(type, id);
        nlapiLogExecution ('DEBUG', 'Record Type: ' + type + ' | Record Id: ' + id + ': deleted');
    }
    catch(err) {
        nlapiLogExecution ('DEBUG', 'Record Type: ' + type + ' | Record Id: ' + id + ': error deleting - ' + JSON.stringify(err));
    }
}
💯 1
😉 1