Deleting records in via Script/UI is taking a long time.Issue Deleting records created by a specific user in the sys_user/cmn_location table via Script/UI is taking a long time. When running the following script to delete records, each deletion takes 2-5 minutes. var grCL = new GlideRecord('cmn_location');grCL.addEncodedQuery("sys_created_by=<user_id>");grCL.orderBy('name');grCL.setLimit(20);grCL.query();while (grCL.next()) {grCL.deleteRecord()} Facts The script uses a loop to iterate through records and delete them individually. Release Any release. Cause The deletion script's execution time of 586 seconds (9.7 minutes) resulted from the loop's 'deleteRecord()' calls triggering over 100 cascading database operations per record. Resolution 1. Modify the script to use the 'deleteMultiple()' method instead of iterating through each record with 'deleteRecord()'. 2. Replace the loop structure in the script with a single call to 'deleteMultiple()' to optimize the deletion process. FROM:while (grSysUser.next()) {grSysUser.deleteRecord();}TO:grSysUser.deleteMultiple(); 3. Re-run the modified script to verify that deletion times are significantly reduced.The resolution addresses performance issues caused by cascading database triggers during individual deletions.