---
lang: en
title: 'API docs: repository.crudconnector.delete'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/repository
permalink: /doc/en/lb4/apidocs.repository.crudconnector.delete.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [CrudConnector](./repository.crudconnector.md) &gt; [delete](./repository.crudconnector.delete.md)

## CrudConnector.delete() method

Delete an entity

<b>Signature:</b>

```typescript
delete?(modelClass: Class<Entity>, entity: EntityData, options?: Options): Promise<boolean>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  modelClass | [Class](./repository.class.md)<!-- -->&lt;[Entity](./repository.entity.md)<!-- -->&gt; | The model class |
|  entity | [EntityData](./repository.entitydata.md) | The entity instance or data |
|  options | [Options](./repository.options.md) | Options for the operation |

<b>Returns:</b>

Promise&lt;boolean&gt;

Promise<true> if an entity is deleted, otherwise Promise<false>


