check before removing config info since it might be a bad repo name
Move destroy check outside of Config class