public void removeStores(List<Store> stores){
  Logger.d("AptoideDatabase","Deleting stores " + stores);
  if (stores != null && stores.size() > 0) {
    database.beginTransaction();
    for (    Store store : stores) {
      database.delete("repo","id_repo = ? ",new String[]{String.valueOf(store.getId())});
    }
    database.setTransactionSuccessful();
    database.endTransaction();
    invalidateUpdates();
  }
}

public void removeStores ( List < Store > stores ) { Logger . d ( "AptoideDatabase" , "Deleting stores " + stores ) ; if ( stores != null && stores . size ( ) > 0 ) { database . beginTransaction ( ) ; for ( Store store : stores ) { database . delete ( "repo" , "id_repo = ? " , new String [ ] { String . valueOf ( store . getId ( ) ) } ) ; } database . setTransactionSuccessful ( ) ; database . endTransaction ( ) ; invalidateUpdates ( ) ; } }
removes stores from a list of stores . method was refactored from v6 , where it also removed data from two now deprecated tables : category & & apk .
