Last updated 5 years ago
Deletes all the entity records found in the database in a transaction safe matter and returns the number of records removed
This method will respect cascading deletes if any
This function returns numeric
ormService.deleteAll("Tags");
Key
Type
Required
Default
Description
entityName
string
Yes
---
The entity to purge
flush
boolean
No
false
transactional
From Property
Use transactions or not