code: public void deleteStates(Collection<MutableState> statesToDelete) {
      if (statesToDelete.isEmpty()) {
        return;
      }
      for (MutableState state : statesToDelete) {
        deleteState(state);
      }
      remapStateIds();
    }
docs: Deletes the given states and remaps the existing state ids