> 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/functions/deleterecord.md).

# deleteRecord

### Parameters

1. options - json object
   * id - the record id. Optional. By default, this is the current record id. (The current record id can be accessed here: brixxApi.actualRecordId)
   * noConfirmMessage - Optional. By default, this is false. If set to true, you will not get a confirm MessageBox. the record will be deleted.

### Example Usages

1\. Simple

```javascript
   brixxApi.deleteRecord(); //deletes the current displayed record
   brixxApi.deleteRecord({id: brixxApi.actualRecordId}); //deletes the current displayed record
```

2\. Simple - No Confirmation

```javascript
   brixxApi.deleteRecord({noConfirmMessage: true}); //deletes the current displayed record without confirmation
```

3\. Without displaying the record

```javascript
   let myRecord = await brixxApi.laodRecord("myKeyControl"); loads a record into myRecord
   brixxApi.deleteRecord({id: myRecord.id}); //deletes the loadedRecord
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://brixxbox.gitbook.io/brixxbox-documentation/client-api-reference/functions/deleterecord.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
