LSEG Data Library for Python

cleanup_files

Cleans up all the previously downloaded local files that belong to a particular ESG data package.

Module

lseg.data.content.esg.bulk

Syntax

cleanup_files()

Parameters

None.

Returned value

None.

Usage

The following example demonstrates how to clean up previously downloaded ESG package files:

from lseg.data.content.esg import PackageManager

# Define package of ESG data to retrieve.
pkg = PackageManager('esg.standard_scores')

# Cleanup all previously downloaded files that belong to this data package

pkg.cleanup_files()

None.

30 words (0:09 mins)