diff --git a/src/aleph/vm/hypervisors/firecracker/microvm.py b/src/aleph/vm/hypervisors/firecracker/microvm.py index 17645471..3cf3e308 100644 --- a/src/aleph/vm/hypervisors/firecracker/microvm.py +++ b/src/aleph/vm/hypervisors/firecracker/microvm.py @@ -503,13 +503,3 @@ async def teardown(self): self.config_file_path.unlink(missing_ok=True) if Path(self.namespace_path).exists(): system(f"rm -fr {self.namespace_path}") - - def __del__(self): - try: - loop = asyncio.get_running_loop() - loop.create_task(self.teardown()) - except RuntimeError as error: - if error.args == ("no running event loop",): - return - else: - raise