code: public Integer delete(CMAEnvironment environment) {
      assertNotNull(environment.getSpaceId(), "spaceId");
      assertNotNull(environment.getId(), "environmentId");
  
      return service.delete(
          getVersionOrThrow(environment, "version"),
          environment.getSpaceId(),
          environment.getId()
      ).blockingFirst().code();
    }
docs: Delete an environment.
  
  @param environment the environment to be deleted
  @return Integer representing the result (204, or an error code)
  @throws IllegalArgumentException if environment's space id is null.
  @throws IllegalArgumentException if environment's id is null.
  @throws IllegalArgumentException if environment's version is null.