> For the complete documentation index, see [llms.txt](https://brixxbox.gitbook.io/brixxbox-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://brixxbox.gitbook.io/brixxbox-documentation/client-api-reference/events/onrecorddelete.md).

# onRecordDelete

The event occurs right before a record is deleted. By returning false, the following delete operation is canceled

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