def delete_runs(cls, samples, cleanup=True):
        """Deletes all runs from the collection.

        Args:
            samples: a :class:`fiftyone.core.collections.SampleCollection`
            cleanup (True): whether to execute the run's
                :meth:`BaseRun.cleanup` methods
        """
        for key in cls.list_runs(samples):
            cls.delete_run(samples, key, cleanup=cleanup)
Deletes all runs from the collection.

        Args:
            samples: a :class:`fiftyone.core.collections.SampleCollection`
            cleanup (True): whether to execute the run's
                :meth:`BaseRun.cleanup` methods
        
fiftyone/core/runs.py