Delete an entity using safe transactions. The entity argument can be a single entity or an array of entities. You can optionally flush the session also after committing.
Returns
This function returns void
Arguments
Examples
var post =ormService.get(1);ormService.delete( post );// Delete a flush immediatelyormService.delete( post,true );