> 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-entity.md).

# Delete Entity

## Syntax

```
Delete(entity);
```

## Arguments

<table data-header-hidden><thead><tr><th width="157">Argument</th><th width="122">Data Type</th><th width="324">Description</th><th>Default Value</th></tr></thead><tbody><tr><td><em>entity</em></td><td>T</td><td><p>Instance of the to-be-deleted record. </p><p>This parameter must not be empty.</p></td><td></td></tr></tbody></table>

## Description

Deletes an existing record of a repository by taking an instance of the record as input.

Before calling the function, you need to load the record you wish to delete into a variable, e.g. by using "GetByID" or "Find", to be able to insert it as input.

## Example

The following program illustrates the function call:

```
var deletedOrder = repo.GetByID("EU00789980");
repo.Delete(deletedOrder);
```

The function will delete the specific record in the repository that has the Primary Key value "EU00789980".
