UNPKG

@loopback/docs

Version:
38 lines (24 loc) 1.04 kB
--- lang: en title: 'API docs: repository.crudconnector.deleteall' keywords: LoopBack 4.0, LoopBack 4 sidebar: lb4_sidebar permalink: /doc/en/lb4/apidocs.repository.crudconnector.deleteall.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; [deleteAll](./repository.crudconnector.deleteall.md) ## CrudConnector.deleteAll() method Delete matching entities <b>Signature:</b> ```typescript deleteAll(modelClass: Class<Entity>, where?: Where<Entity>, options?: Options): Promise<Count>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | modelClass | <code>Class&lt;Entity&gt;</code> | The model class | | where | <code>Where&lt;Entity&gt;</code> | The matching criteria | | options | <code>Options</code> | Options for the operation | <b>Returns:</b> `Promise<Count>` A promise of number of matching entities deleted