def remove_project(self): self.close_project() with contextlib.suppress(FileNotFoundError): self.project_path.unlink()