From a81431810201a04e84c12dc805216dc216ed9f26 Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Thu, 26 Feb 2026 11:54:22 -0500 Subject: [PATCH] If a solution exists but we want to remove it it should be deleted from the remote --- ctfcli/core/challenge.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ctfcli/core/challenge.py b/ctfcli/core/challenge.py index 19c9d8f..f2e4ba1 100644 --- a/ctfcli/core/challenge.py +++ b/ctfcli/core/challenge.py @@ -919,7 +919,9 @@ def sync(self, ignore: tuple[str] = ()) -> None: self._set_next(_next) if "solution" not in ignore: - # self._delete_existing_solution() + resolved_solution = self._resolve_solution_path() + if not resolved_solution: + self._delete_existing_solution() self._create_solution() make_challenge_visible = False