function deleteAll(tables){
        var deferred = $q.defer();
        var promises = [];
        
        angular.forEach(tables, function(t){
          promises.push(service.db_.delete().from(t).exec());
        })

        $q.all(promises).then(function(){
          deferred.resolve();
        })

        return deferred.promise;
      }
/*
      * delete all rows from from tables
      * tables => required
      */
delete all rows from from tables
tables => required
delete all rows from from tables tables = > required
function deleteAll(tables){
        var deferred = $q.defer();
        var promises = [];
        angular.forEach(tables, function(t){
          promises.push(service.db_.delete().from(t).exec());
        })
        $q.all(promises).then(function(){
          deferred.resolve();
        })
        return deferred.promise;
      }
function deleteAll ( tables ) { var deferred = $q . defer ( ) ; var promises = [ ] ; angular . forEach ( tables , function ( t ) { promises . push ( service . db_ . delete ( ) . from ( t ) . exec ( ) ) ; } ) $q . all ( promises ) . then ( function ( ) { deferred . resolve ( ) ; } ) return deferred . promise ; }
delete all rows from from tables
 tables => required
delete all rows from from tables tables = > required