From 326b368e821f7d0acf947d26d2a7eb8417bd8df2 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Wed, 2 Feb 2022 07:29:01 -0600 Subject: [PATCH] cleanup clean snapshots on event deletion too --- frigate/http.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frigate/http.py b/frigate/http.py index ee51e7264..ea9a4166b 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -133,6 +133,8 @@ def delete_event(id): if event.has_snapshot: media = Path(f"{os.path.join(CLIPS_DIR, media_name)}.jpg") media.unlink(missing_ok=True) + media = Path(f"{os.path.join(CLIPS_DIR, media_name)}-clean.png") + media.unlink(missing_ok=True) if event.has_clip: media = Path(f"{os.path.join(CLIPS_DIR, media_name)}.mp4") media.unlink(missing_ok=True)