def get_elevation_extremes(self):
        if not self.tracks:
            return MinimumMaximum(None, None)

        elevations = []

        for track in self.tracks:
            (_min, _max) = track.get_elevation_extremes()
            if _min is not None:
                elevations.append(_min)
            if _max is not None:
                elevations.append(_max)

        if len(elevations) == 0:
            return MinimumMaximum(None, None)

        return MinimumMaximum(min(elevations), max(elevations))
Do some extra processing along with the actual delete to db.
dataset/ETHPy150Open tkrajina/gpxpy/gpxpy/gpx.py/GPX.get_elevation_extremes--crossover with--dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/teams/models.py/Team.delete