(user_id: str)
| 3197 | if not any(path == root or path.is_relative_to(root) for root in allowed_roots): |
| 3198 | raise ValueError("Report path is outside configured report directories") |
| 3199 | path.unlink() |
| 3200 | # A deleted file is never revisited by the mtime check, so drop it here |
| 3201 | # or it would keep showing up in the list. |
| 3202 | invalidate_report_cache(path) |
| 3203 | return { |
| 3204 | "deleted": True, |
| 3205 | "report_id": normalized_id, |
| 3206 | "title": report.get("title") or "", |
no test coverage detected