Client API ReferenceEventsonRecordDeleteonRecordDelete console.log("deleting a record"); if(a != b){ return false; //cancel the delete }