Page Contents
Home > @loopback/repository > CrudRepository > deleteAll
CrudRepository.deleteAll() method
Delete matching records
Signature:
deleteAll(where?: Where<T>, options?: Options): Promise<Count>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| where | Where<T> | Matching criteria |
| options | Options | Options for the operations |
Returns:
Promise<Count>
A promise of number of records deleted