Skip to content

NVR with realtime local object detection for IP cameras

Delete timeline items along with event (#8192)

Nicolas Mowen1bdfc380c39a
diff --git a/frigate/http.py b/frigate/http.py
index 695ba84736..48e9661b4c 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
)