-
-
Couldn't load subscription status.
- Fork 19
deleteAll
Jorge Reyes edited this page May 29, 2015
·
2 revisions
Deletes all the entity records found in the database in a transaction safe matter and returns the number of records removed
###Returns
- This function returns numeric
###Arguments
| Key | Type | Required | Default | Description |
|---|---|---|---|---|
| entityName | string | Yes | --- | The entity to purge |
| flush | boolean | No | false | |
| transactional | boolean | No | From Property | Use transactions or not |
###Examples
ormService.deleteAll("Tags");