public synchronized void deletePreset(String id){
  if (id.equals(ID_DEFAULT))   throw new RuntimeException("Cannot delete default");
  SQLiteDatabase db=getWritableDatabase();
  db.delete("presets","id = ?",new String[]{id});
  db.close();
  removePresetDirectory(id);
  if (id.equals(getCurrentAPI().preset))   Application.resetPresets();
}

public synchronized void deletePreset ( String id ) { if ( id . equals ( ID_DEFAULT ) ) throw new RuntimeException ( "Cannot delete default" ) ; SQLiteDatabase db = getWritableDatabase ( ) ; db . delete ( "presets" , "id = ?" , new String [ ] { id } ) ; db . close ( ) ; removePresetDirectory ( id ) ; if ( id . equals ( getCurrentAPI ( ) . preset ) ) Application . resetPresets ( ) ; }
deletes a preset including the corresponding preset data directory
