public synchronized void deleteAPI(final String id){
  if (id.equals(ID_DEFAULT))   throw new RuntimeException("Cannot delete default");
  if (id.equals(currentAPI))   selectAPI(ID_DEFAULT);
  SQLiteDatabase db=getWritableDatabase();
  db.delete("apis","id = ?",new String[]{id});
  db.close();
}

public synchronized void deleteAPI ( final String id ) { if ( id . equals ( ID_DEFAULT ) ) throw new RuntimeException ( "Cannot delete default" ) ; if ( id . equals ( currentAPI ) ) selectAPI ( ID_DEFAULT ) ; SQLiteDatabase db = getWritableDatabase ( ) ; db . delete ( "apis" , "id = ?" , new String [ ] { id } ) ; db . close ( ) ; }
removes an api from the api database
