code: func (r *realisClient) RemoveInstances(key *aurora.JobKey, count int32) (*aurora.Response, error) {
  	instanceIds, err := r.GetInstanceIds(key, aurora.ACTIVE_STATES)
  	if err != nil {
  		return nil, errors.Wrap(err, "RemoveInstances: Could not retrieve relevant instance IDs")
  	}
  
  	if len(instanceIds) < int(count) {
  		return nil, errors.Errorf("Insufficient active instances available for killing: "+
  			" Instances to be killed %d Active instances %d", count, len(instanceIds))
  	}
  
  	// Sort instanceIds in ** decreasing ** order
  	sort.Slice(instanceIds, func(i, j int) bool {
  		return instanceIds[i] > instanceIds[j]
  	})
  
  	// Kill the instances with the highest ID number first
  	return r.KillInstances(key, instanceIds[:count]...)
  }
docs: // Scale down the number of instances under a job configuration using the configuration of a specific instance