> For the complete documentation index, see [llms.txt](https://aeudoc.gitbook.io/developer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aeudoc.gitbook.io/developer/backend/data-repository/delete-by-primary-key.md).

# Delete by Primary Key

## Syntax

```
DeleteByID(id); 
```

## Arguments

<table data-header-hidden><thead><tr><th width="145">Argument</th><th width="147">Data Type</th><th width="307">Description</th><th>Default Value</th></tr></thead><tbody><tr><td><em>id</em></td><td>long / string</td><td><p>Value of the Primary Key of the to-be-deleted record. </p><p>This parameter must not be empty.</p></td><td></td></tr></tbody></table>

## Description

Gets the specific record from a repository whose Primary Key value matches the one specified in the parameter *id*.

## Example

The following program illustrates the function call:

```
repo.DeleteByID("EU00789980");
```

Function will delete the specific record that has "EU00899091" as ID (the Primary Key of the data table "Production Orders") from the repository.
