diff --git a/app/Controllers/EventController.php b/app/Controllers/EventController.php
index 921bdc631b018a1dcf14ac78118a34f51a30e44d..5416fbe9f02fd1fd50b117da11b534835c11665a 100644
--- a/app/Controllers/EventController.php
+++ b/app/Controllers/EventController.php
@@ -112,6 +112,13 @@ class EventController {
                 header("Location:Views/home/home.php");
                 ob_end_flush();
             }
+            elseif ($_POST['eventAction'] === 'deleteEvent') {
+                unset($_POST['eventAction']);
+                $eventId = $_POST['eventId'];
+                $this->deleteEvent($eventId);
+                header("Location:Views/home/home.php");
+                ob_end_flush();
+            }
         } else {
             // Handle other actions here, if needed
         }