From 1bdfc380c39a3d058cbdbadd556410cf9025722a Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 17 Oct 2023 05:37:07 -0600 Subject: [PATCH] Delete timeline items along with event (#8192) --- frigate/http.py | 1 + 1 file changed, 1 insertion(+) diff --git a/frigate/http.py b/frigate/http.py index 695ba8473..48e9661b4 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -516,6 +516,7 @@ def delete_event(id): media.unlink(missing_ok=True) event.delete_instance() + Timeline.delete().where(Timeline.source_id == id).execute() return make_response( jsonify({"success": True, "message": "Event " + id + " deleted"}), 200 )