diff --git a/cmem_plugin_reason/utils.py b/cmem_plugin_reason/utils.py index 108cf8a..9eb29e9 100644 --- a/cmem_plugin_reason/utils.py +++ b/cmem_plugin_reason/utils.py @@ -7,7 +7,6 @@ from collections import OrderedDict from pathlib import Path from secrets import token_hex -from shutil import rmtree from subprocess import CompletedProcess, run from xml.etree.ElementTree import Element, SubElement, tostring @@ -122,14 +121,6 @@ def send_result(iri: str, filepath: Path) -> None: ) -def remove_temp(plugin: WorkflowPlugin) -> None: - """Remove temporary files""" - try: - rmtree(plugin.temp) - except (OSError, FileNotFoundError) as err: - plugin.log.warning(f"Cannot remove directory {plugin.temp} ({err})") - - def post_provenance(plugin: WorkflowPlugin, prov: dict | None) -> None: """Post provenance""" if not prov: