diff --git a/problem/views/admin.py b/problem/views/admin.py index 874a7f79..ee04dc13 100644 --- a/problem/views/admin.py +++ b/problem/views/admin.py @@ -430,9 +430,9 @@ class ContestProblemAPI(ProblemBase): ensure_created_by(problem.contest, request.user) if Submission.objects.filter(problem=problem).exists(): return self.error("Can't delete the problem as it has submissions") - d = os.path.join(settings.TEST_CASE_DIR, problem.test_case_id) - if os.path.isdir(d): - shutil.rmtree(d, ignore_errors=True) + # d = os.path.join(settings.TEST_CASE_DIR, problem.test_case_id) + # if os.path.isdir(d): + # shutil.rmtree(d, ignore_errors=True) problem.delete() return self.success()