diff --git a/delete.php b/delete.php
new file mode 100644
index 0000000..b7835ca
--- /dev/null
+++ b/delete.php
@@ -0,0 +1,17 @@
+<?php
+session_start();
+$db_servername = 'localhost';
+$db_login_tasks = '';
+$db_password_tasks = '';
+$db_name_tasks = '';
+
+$db = mysqli_connect("$db_servername", "$db_login_tasks", "$db_password_tasks", "$db_name_tasks");
+
+if (isset($_GET['del_task']) && $_SESSION['zalogowany'] = true) {
+	
+	$login = $_SESSION['login'];
+	$id = $_GET['del_task'];
+	mysqli_query($db, "DELETE FROM `tasks_$login` WHERE ID = $id");
+}
+header('Location: index.php');
+?>
\ No newline at end of file