Page Contents
Home > @loopback/repository > HasManyRepository > delete
HasManyRepository.delete() method
Delete multiple target model instances
Signature:
delete(where?: Where<Target>, options?: Options): Promise<Count>;
Parameters
Parameter | Type | Description |
---|---|---|
where | Where<Target> | Instances within the where scope are deleted |
options | Options |
Returns:
Promise<Count>
A promise which resolves the deleted target model instances