title: Is there a simple way to identify all dependent records of a record using SuiteScript in NetSuite?
body: <p>In deleting existing records during automated tests, I often encounter the "This record cannot be deleted because it has dependent records" error. Right now I scrape the dependent records page for the record types and ID's of each dependent record and delete them with nlapiDeleteRecord before proceeding. There must be a better way to identify and delete dependent records.</p>