Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 755 Bytes

File metadata and controls

25 lines (17 loc) · 755 Bytes

deleteAll

Deletes all the entity records found in the database in a transaction safe matter and returns the number of records removed

{% hint style="info" %} This method will respect cascading deletes if any {% endhint %}

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");