def remove_export(self):
    prefix = self.path + '/' if self.path else ''
    tiles_path = '%s%s' % (prefix, self.tileset)
    metadata_path = '%s%s.json' % (prefix, self.tileset)
    mbtiles_path = '%s%s.mbtiles' % (prefix, self.tileset)

    # Get list for tiles
    tiles_path_set = self.bucket.list(prefix = tiles_path)

    # Progress
    widgets = ['- Removing old export, %s: ' % (self.tileset), progressbar.Percentage()]
    progress = progressbar.ProgressBar(widgets = widgets, maxval = 1).start()

    # Remove parts
    self.bucket.delete_keys([key.name for key in tiles_path_set])
    self.bucket.delete_key(tiles_path)
    progress.update(.5)
    self.bucket.delete_key(metadata_path)
    progress.update(.25)
    self.bucket.delete_key(mbtiles_path)
    progress.update(.25)
    progress.finish()
Removes export of same name.
dataset/ETHPy150Open MinnPost/mbtiles2s3/mbtiles2s3/mbtiles2s3.py/MBTiles2S3.remove_export