# 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.
