@classmethod
    def delete(cls, slug, timestamp):
        if timestamp:
            file_name = cls.get_file_name(slug, timestamp)
            try:
                remove(file_name)
            except __HOLE__:
                return False
        else:
            rmtree(cls.get_folder_name(slug), True)
        return True
dataset/ETHPy150Open turbulenz/turbulenz_local/turbulenz_local/models/metrics.py/MetricsSession.delete