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