pandas_openscm.db.deleting#
Functionality for deleting data
Functions:
| Name | Description |
|---|---|
delete_files |
Delete a number of files |
delete_files #
delete_files(
files_to_delete: Iterable[Path],
parallel_op_config: ParallelOpConfig | None = None,
progress: bool = False,
max_workers: int | None = None,
) -> None
Delete a number of files
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
files_to_delete
|
Iterable[Path]
|
Files to delete |
required |
parallel_op_config
|
ParallelOpConfig | None
|
Configuration for executing the operation in parallel with progress bars If not supplied, we use the values of |
None
|
progress
|
bool
|
Should progress bar(s) be used to display the progress of the deletion? Only used if |
False
|
max_workers
|
int | None
|
Maximum number of workers to use for parallel processing. If supplied, we create an instance of concurrent.futures.ThreadPoolExecutor with the provided number of workers (a thread pool makes sense as deletion is I/O-bound). If not supplied, the deletions are executed serially. Only used if |
None
|